在centos上安装Python-devel bash-4.1#yum安装python-devel 加载的插件:fastestmirror、rhnplugin 该系统正在接收RHN Classic或RHN卫星的更新。 从缓存的主机文件加载镜像速度 *rpmforge:mirror.smartmedia.net.id *WebStatic-el5:uk.repo.webstatic.com http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml: [Errno 14]PYCURL错误22-“请求的URL返回错误:404未找到” 尝试另一面镜子。 设置安装过程 解决依赖关系 -->运行事务检查 --->将安装程序包python-devel.x86_64 0:2.6.6-36.el6 -->包:python-devel-2.6.6-36.el6的处理依赖项:python(x86-64)=2.6.6-36.el6.x86_64 -->已完成依赖项解析 错误:包:python-devel-2.6.6-36.el6.x86_64(centos64-x86_64) 要求:python(x86-64)=2.6.6-36.el6 已安装:python-2.6.6-37.el6_4.x86_64(@centos64-updates-x86_64) python(x86-64)=2.6.6-37.el6_4 提供:python-2.6.6-36.el6.x86_64(centos64-x86_64) python(x86-64)=2.6.6-36.el6 您可以尝试使用--skip break来解决这个问题 您可以尝试运行:rpm-Va--nofiles--nodigest

在centos上安装Python-devel bash-4.1#yum安装python-devel 加载的插件:fastestmirror、rhnplugin 该系统正在接收RHN Classic或RHN卫星的更新。 从缓存的主机文件加载镜像速度 *rpmforge:mirror.smartmedia.net.id *WebStatic-el5:uk.repo.webstatic.com http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml: [Errno 14]PYCURL错误22-“请求的URL返回错误:404未找到” 尝试另一面镜子。 设置安装过程 解决依赖关系 -->运行事务检查 --->将安装程序包python-devel.x86_64 0:2.6.6-36.el6 -->包:python-devel-2.6.6-36.el6的处理依赖项:python(x86-64)=2.6.6-36.el6.x86_64 -->已完成依赖项解析 错误:包:python-devel-2.6.6-36.el6.x86_64(centos64-x86_64) 要求:python(x86-64)=2.6.6-36.el6 已安装:python-2.6.6-37.el6_4.x86_64(@centos64-updates-x86_64) python(x86-64)=2.6.6-37.el6_4 提供:python-2.6.6-36.el6.x86_64(centos64-x86_64) python(x86-64)=2.6.6-36.el6 您可以尝试使用--skip break来解决这个问题 您可以尝试运行:rpm-Va--nofiles--nodigest,python,linux,oracle,centos,cx-oracle,Python,Linux,Oracle,Centos,Cx Oracle,有人能帮我解决上面的错误吗?我越来越糊涂了。 只是想让大家知道,我正试图在CentOS系统(CentOS 6.4版)上安装cx_Oracle,但出现以下错误:- 错误:命令“gcc”失败,退出状态为1 因此,我搜索并发现要安装python-devel,为此我得到了上述错误。您安装的python版本比您尝试安装的相应源程序包更新 您已经安装了python 2.6.6-37,但是您的repos(您可以成功连接到)提供的最新源代码包是2.6.6-36 但看起来你安装的python来自你的“更新”rep

有人能帮我解决上面的错误吗?我越来越糊涂了。 只是想让大家知道,我正试图在CentOS系统(CentOS 6.4版)上安装cx_Oracle,但出现以下错误:- 错误:命令“gcc”失败,退出状态为1
因此,我搜索并发现要安装python-devel,为此我得到了上述错误。

您安装的python版本比您尝试安装的相应源程序包更新

您已经安装了python 2.6.6-37,但是您的repos(您可以成功连接到)提供的最新源代码包是2.6.6-36

但看起来你安装的python来自你的“更新”repo,
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml
目前不起作用

如果repo也有相应的python-devel-2.6.6-37包,并且它工作正常(没有抛出PYCURL错误),那么您就没事了,yum会找到它并使用它


因此,您的第一步应该是修复LAN回购/镜像。

如何修复LAN回购/镜像? 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