在centos 6.3中,我安装了semanage工具 $ yum -y install policycoreutils-python "包policycoreutils-python-2.0.83-19.39.el6.x86_64"已安装。 但是当我运行以下命令时,会发生错误
$ semanage
Traceback (most recent call last):
File "/usr/sbin/semanage", line 25, in <module>
import seobject
File "/usr/lib64/python2.6/site-packages/seobject.py", line 38, in <module>
import setools
File "/usr/lib64/python2.6/site-packages/setools/__init__.py", line 5, in <module>
import _sesearch
ImportError: /usr/lib64/libapol.so.4: invalid ELF header
python info:
$ whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gz
$ python
/usr/bin/python