CentOS 5:如何用php-foo和php-common解决php53 RPM依赖冲突?

前端之家收集整理的这篇文章主要介绍了CentOS 5:如何用php-foo和php-common解决php53 RPM依赖冲突?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我们正在运行CentOS 5.6系统,并希望用PHP-mcrypt安装PHP53.

然而,这引入了PHP-common和amp;之间的依赖冲突. PHP53常见.有没有人有一个很好的解决方法解决这个问题?

host # yum install PHP-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: linux.mirrors.es.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package PHP-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: PHP-api = 20041225 for package: PHP-mcrypt
--> Processing Dependency: PHP >= 5.1.6 for package: PHP-mcrypt
--> Running transaction check
---> Package PHP.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: PHP-cli = 5.1.6-27.el5_5.3 for package: PHP
---> Package PHP-common.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Running transaction check
---> Package PHP-cli.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Conflict: PHP53-common conflicts PHP-common
--> Finished Dependency Resolution
PHP53-common-5.3.3-1.el5_6.1.x86_64 from installed has depsolving problems
  --> PHP53-common conflicts with PHP-common
Error: PHP53-common conflicts with PHP-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

这显然是一个已知的问题(见php-devel,Bug 700179Bug 695708)和这篇文章CentOS forums,但还没有官方修复.

解决方法:使用iuscommunity( http://iuscommunity.org/)并安装PHP53u-mcrypt.

通常,您将安装名为PHP53u-foo的包.

原文链接:https://www.f2er.com/centos/373723.html

猜你在找的CentOS相关文章