【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
系统是redhat5.6 我卸载了yum 安装了centos的yum-3.2.22-39.el5.centos.noarch.rpm
执行
[root@localhost software]# yum makecache
There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was:
/usr/lib/python2.4/site-packages/_sqlitecache.so: wrong ELF class: ELFCLASS32
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Dec 10 2010, 17:24:35)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
求教 谢谢
vim /usr/bin/yum
将文件头部的
#!/usr/bin/python
改成2.4因为yum默认的是2.4、
#!/usr/bin/python2.4