安装 php-devel

Install php-devel

我想在我的服务器(CentOS 6.5)上安装 php-devel。

yum install php-devel

但是,我遇到了以下错误。

Error: php54-cli conflicts with php-cli-5.3.3-40.el6_6.x86_64
Error: php54 conflicts with php-5.3.3-40.el6_6.x86_64
Error: php54-common conflicts with php-common-5.3.3-40.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

你能告诉我如何解决这个问题吗?

这是因为您必须在 5.4 和 5.3 包之间进行选择

我建议做:

yum remove php.*

sudo yum install php53-common php5-devel php5-cli