在Centos 6软件包相关性问题上安装APC – 我应该继续哪个方向

我有一个运行NGINX和Drupal 7的CentOS 6.4 x32 VPS。为了改善响应,我想安装和configurationAPC。 要做到这一点,我的第一个尝试是使用PECL来安装它。 开始我解雇了这个命令

yum install php-pear php-devel httpd-devel 

(这是因为pear需要phpize,可以在devel中find,这取决于httpd-devel包中的apxs。)我得到以下错误。

 Error: Package: php-devel-5.3.3-27.el6_5.i686 (updates) Requires: php(x86-32) = 5.3.3-27.el6_5 Installed: php-5.4.23-1.el6.remi.i686 (@remi) php(x86-32) = 5.4.23-1.el6.remi Available: php-5.3.3-26.el6.i686 (base) php(x86-32) = 5.3.3-26.el6 Available: php-5.3.3-27.el6_5.i686 (updates) php(x86-32) = 5.3.3-27.el6_5 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

我不知道我应该采取哪一个方向1)我应该降级PHP 5.4到PHP 5.3或2)我应该寻找PHP开发5.4?

在我的研究过程中,我发现一篇文章提到apc可以用yum来安装。 所以我跑这个命令yum安装php-pecl-apc并得到了一大堆的依赖性问题错误:包:php-pecl-apc-3.1.9-2.el6.i686(base)需要:php(zend-abi) = 20090626安装:php-common-5.4.23-1.el6.remi.i686(@remi)php(zend-abi)= 20100525-x86-32可用:php-common-5.3.3-26.el6.i686 (base)php(zend-abi)= 20090626可用:php-common-5.3.3-27.el6_5.i686(更新)php(zend-abi)= 20090626错误:软件包:php-pecl-apc-3.1.9 -2.el6.i686(base)需要:php(api)= 20090626安装:php-common-5.4.23-1.el6.remi.i686(@remi)php(api)= 20100412-x86-32可用: php-common-5.3.3-26.el6.i686(base)php(api)= 20090626可用:php-common-5.3.3-27.el6_5.i686(更新)php(api)= 20090626你可以尝试使用–skip-broken解决问题你可以尝试运行:rpm -Va –nofiles –nodigest

这个错误类似于第一种情况,我不确定要走哪条路。 任何想法,将不胜感激。

看来你已经安装了从remi回购的PHP,所以你应该从remi安装php-devel和php-pear以获得正确的软件包版本。

 yum install php-devel php-pear --enablerepo=remi