bash-4.1# yum install python-devel Loaded plugins: fastestmirror, rhnplugin This system is receiving updates from RHN Classic or RHN Satellite. Loading mirror speeds from cached hostfile * rpmforge: mirror.smartmedia.net.id * webtatic-el5: uk.repo.webtatic.com http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package python-devel.x86_64 0:2.6.6-36.el6 will be installed --> Processing Dependency: python(x86-64) = 2.6.6-36.el6 for package: python-devel-2.6.6-36.el6.x86_64 --> Finished Dependency Resolution Error: Package: python-devel-2.6.6-36.el6.x86_64 (centos64-x86_64) Requires: python(x86-64) = 2.6.6-36.el6 Installed: python-2.6.6-37.el6_4.x86_64 (@centos64-updates-x86_64) python(x86-64) = 2.6.6-37.el6_4 Available: python-2.6.6-36.el6.x86_64 (centos64-x86_64) python(x86-64) = 2.6.6-36.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
有人可以帮助我解决上述错误,我得到了。 只是为了让大家知道我正在尝试在我的CentOS系统上安装cx_Oracle(CentOS版本6.4),我收到了这个错误: - 错误:命令'gcc'失败,退出状态为1 所以,我搜索并发现安装python-devel并且为此我得到了上述错误。
答案 0 :(得分:2)
您安装的python版本比您尝试安装的相应源代码包更新。
你安装了python 2.6.6-37,但你的repos(你可以成功连接到)的最新可用源包是2.6.6-36。
但是看起来你安装的python来自你的"更新"回购,
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml
当时没有工作。
如果那个repo也有相应的python-devel-2.6.6-37包,并且它有效,(没有抛出PYCURL错误)你没事,yum会发现并使用它
因此,您的第一步应该是修复您的LAN repo /镜像。