我跟着这将 PHP 从 5.3 版本更新到 5.4 的教程。我的发行版是 CentOS 5.5。
运行以下命令后:
yum --enablerepo=remi,remi-test install httpd php php-common
我收到以下错误:
--> Finished Dependency Resolution
php53-common-5.3.3-13.el5_8.i386 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
我该如何解决这个错误?
答案1
php-zts
完成 php 5.4 安装后,删除并重新编译此扩展或为其重新生成 RPM 包。
yum remove php-zts
答案2
我使用以下代码成功安装了 PHP 5.4:
yum erase php-common
yum --enablerepo=remi,remi-test install php
答案3
很简单,使用 remi repo
$ wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
$ wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
$ rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
更改启用为 1
vim /etc/yum.repos.d/remi.repo
$ yum clean all
$ yum makecache
$ yum --disablerepo=* --enablerepo=remi update php