クライアントマシンの登録時に "ImportError: /usr/lib/python2.4/site-packages/dmidecodemod.so: wrong ELF class: ELFCLASS32" エラーが発生します
Environment
- Red Hat Enterprise Linux 5.8 (x86_64)
- python-dmidecode-3.10.13-1.el5_5.1.i386
- libxml2-python-2.6.26-2.1.15.el5_8.2.i386
Issue
- Red Hat Enterprise Linux 5.8 (x86_64) マシンを登録すると、以下のエラーメッセージが表示されます。
File "/usr/sbin/rhnreg_ks", line 29, in ?
from up2date_client import rhnreg
File "/usr/share/rhn/up2date_client/rhnreg.py", line 24, in ?
import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 26, in ?
import dmidecode
File "/usr/lib/python2.4/site-packages/dmidecode.py", line 29, in ?
from dmidecodemod import *
ImportError:/usr/lib/python2.4/site-packages/dmidecodemod.so: wrong ELF class:ELFCLASS32
Resolution
i386 バージョンの python-dmidecode および libxml2-python パッケージを削除して、x86_64 バージョンの python-dmidecode をインストールします。
# rpm -e python-dmidecode-3.10.13-1.el5_5.1.i386 --nodeps
# rpm -e libxml2-python-2.6.26-2.1.15.el5_8.2.i386 --nodeps
python-dmidecode-3.10.13-1.el5_5.1.x86_64.rpm を rhn からダウンロードし、rpm コマンドを使用してインストールしてください。
# rpm -ivh python-dmidecode-3.10.13-1.el5_5.1.x86_64.rpm
Root Cause
i386 バージョンの python-dmidecode および libxml2-python パッケージがサーバーにインストールされており、x86_64 バージョンの python-dmidecode はインストールされていませんでした。/usr/lib/python2.4/site-packages/dmidecodemod.so ファイルは、python-dmidecode-3.10.13-1.el5_5.1.i386 パッケージの一部になります。このパッケージは、Red Hat Enterprise Linux Server リリース 5 (x86_64) チャンネルにはありません。
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments