我在试着解决一个依赖。因为RHEL6不包含python-2.4.3,所以我从RHEL5下载了这个包,并将其放入我们自己的存储库中。然后在安装后:
...
---> Package cppunit.x86_64 0:1.12.0-4.el5.1 will be installed
---> Package mx.x86_64 0:2.0.6-2.2.2 will be installed
--> Processing Dependency: python(abi) = 2.4 for package: mx-2.0.6-2.2.2.x86_64
---> Package python2.5-mysql.x86_64 0:1.2.2-5.el5 will be installed
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15)(64bit) for package: python2.5-mysql-1.2.2-5.el5.x86_64
--> Processing Dependency: libmysqlclient_r.so.15()(64bit) for package: python2.5-mysql-1.2.2-5.el5.x86_64
--> Finished Dependency Resolution
Error: Package: python2.5-mysql-1.2.2-5.el5.x86_64 (xxx)
Requires: libmysqlclient_r.so.15()(64bit)
Error: Package: python2.5-mysql-1.2.2-5.el5.x86_64 (xxx)
Requires: libmysqlclient_r.so.15(libmysqlclient_15)(64bit)
Error: Package: mx-2.0.6-2.2.2.x86_64 (xxx)
Requires: python(abi) = 2.4
Installed: python-2.6.6-29.el6_3.3.x86_64 (@main-updates)
python(abi) = 2.6
Installed: python27-2.7.3-1.el5.x86_64 (@xxx)
python(abi) = 2.7
Available: python-2.4.3-56.el5.x86_64 (xxx)
python(abi) = 2.4
Available: python-2.6.6-29.el6_2.2.x86_64 (main-base)
python(abi) = 2.6
Available: python27-2.7.2-5.2.el5.x86_64 (xxx)
python(abi) = 2.7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest 所以我试着用手安装。
[root@render3 dusan]# yum install python-2.4.3
Loaded plugins: fastestmirror, product-id, security
Loading mirror speeds from cached hostfile
* main-base: yum01ldn.peer1.com
* main-extras: yum01ldn.peer1.com
* main-optional: yum01ldn.peer1.com
* main-updates: yum01ldn.peer1.com
Setting up Install Process
Package matching python-2.4.3-56.el5.x86_64 already installed. Checking for update.
Nothing to do
[root@render3 dusan]# yum erase python-2.4.3
Loaded plugins: fastestmirror, product-id, security
Setting up Remove Process
No Match for argument: python-2.4.3
Loading mirror speeds from cached hostfile
* main-base: yum01ldn.peer1.com
* main-extras: yum01ldn.peer1.com
* main-optional: yum01ldn.peer1.com
* main-updates: yum01ldn.peer1.com
Package(s) python-2.4.3 available, but not installed.
No Packages marked for removal
[root@render3 dusan]# 我该怎么解决这个问题?
发布于 2013-02-13 17:44:00
解决方案是为RHEL 6重新构建您的专有包,以便它使用RHEL 6附带的Python版本(和其他依赖项)。试图迫使它使用旧的Python版本并不是正确的方法。
发布于 2013-02-13 17:32:01
您可以根据当前的CentOS 6设置,从源代码创建自己的RPM。
关于如何做到这一点的简单答案是
rpmbuild --rebuild /tmp/mypythonpackagename-2.3.4-56.src.rpm
有关详细信息,请参阅http://wiki.centos.org/HowTos/RebuildSRPM
发布于 2013-02-13 17:42:53
您正在尝试安装一个较旧的python版本,以取代较新的版本。由于yum依赖于python,这不是一个好主意。
使用像这一个这样的存储库,并行地安装旧的python版本。
https://serverfault.com/questions/478478
复制相似问题