微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法在CentOS 5.6上安装php-posix软件包

我在CentOS 5.6主机上安装了以下PHP软件包,我正在尝试安装PHP-posix.当我运行yum install PHP-posix时,我收到一条错误,说PHP53-常见的与PHP-common冲突.

[root@dev ~]# yum list installed | grep PHP
PHP.x86_64                               5.3.10-1.w5                   installed
PHP-cli.x86_64                           5.3.10-1.w5                   installed
PHP-common.x86_64                        5.3.10-1.w5                   installed
PHP-devel.x86_64                         5.3.10-1.w5                   installed
PHP-gd.x86_64                            5.3.10-1.w5                   installed
PHP-ldap.x86_64                          5.3.10-1.w5                   installed
PHP-mcrypt.x86_64                        5.3.10-1.w5                   installed
PHP-MysqL.x86_64                         5.3.10-1.w5                   installed
PHP-pdo.x86_64                           5.3.10-1.w5                   installed
PHP-pear.noarch                          1:1.9.4-1.w5                  installed
PHP-soap.x86_64                          5.3.10-1.w5                   installed
PHP-xml.x86_64                           5.3.10-1.w5                   installed


[root@dev ~]# yum install PHP-posix
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.krystal.co.uk
 * epel: ftp.uni-koeln.de
 * extras: mirror.krystal.co.uk
 * rpmforge: mirror.nl.leaseweb.net
 * updates: mirror.krystal.co.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package PHP53-process.x86_64 0:5.3.3-7.el5_8 set to be updated
--> Processing Dependency: PHP53-common = 5.3.3-7.el5_8 for package: PHP53-process
--> Running transaction check
---> Package PHP53-common.x86_64 0:5.3.3-7.el5_8 set to be updated
--> Processing Conflict: PHP53-common conflicts PHP-common
--> Finished Dependency Resolution
PHP53-common-5.3.3-7.el5_8.x86_64 from updates 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
The program package-cleanup is found in the yum-utils package.

什么阻止我安装PHP-posix?

解决方法:

错误是由PHP-common53软件包与安装的PHP-common软件包冲突引起的. PHP-common53包是版本5.3.3,而安装的PHP包是5.3.10.安装的PHP包可能来自EPEL或RPMForge存储库.你可以通过运行yum info PHP找到答案.

您将不得不删除PHP-common和dependent软件包,然后安装PHP53-common.如果存储库中没有对应的,您可能会丢失当前安装的一些PHP包.

# yum remove  PHP PHP-cli PHP-common PHP-devel PHP-gd PHP-ldap PHP-mcrypt PHP-MysqL PHP-pdo PHP-pear PHP-soap PHP-xml

当您安装PHP-posix时,将自动安装依赖包,如PHP53和PHP53-common.

# yum install PHP-posix

您应该知道,如果您不小心,启用EPEL和RPMForge存储库中的任何一个或两者都会导致问题.熟悉yum命令(例如–enablerepo和–disablerepo)和一些可用的插件(yum-plugin-protect-packages和yum-plugin-protectbase)来帮助管理软件并使存储库保持良好状态.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。