免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4449 | 回复: 0
打印 上一主题 下一主题

yum安装与python的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-21 10:01 |只看该作者 |倒序浏览
系统:Linux HPCserver 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_6
4 x86_64 GNU/Linux

运行yum的时候:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib/python2.4/site-packages/_sqlitecache.so: wrong ELF class: ELFCLASS
32

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, Jan 14 2008, 18:31:21)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

于是把已有的python卸载,重新装了python。
结果:
[root@HPCserver yumm]# rpm -ivh yum*
warning: yum-3.2.22-33.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY,
key ID e8562897
error: Failed dependencies:
        /usr/bin/python is needed by yum-3.2.22-33.el5.centos.noarch
        python >= 2.4 is needed by yum-3.2.22-33.el5.centos.noarch
        python(abi) = 2.4 is needed by yum-3.2.22-33.el5.centos.noarch
        python-iniparse is needed by yum-3.2.22-33.el5.centos.noarch
        python(abi) = 2.4 is needed by yum-metadata-parser-1.1.2-3.el5.centos.i386
上面显示没有python
[root@HPCserver yumm]# which python
/usr/bin/python
[root@HPCserver yumm]# python -V
Python 2.4.3
上面显示python已经装了


现在怎么办?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP