2014-03-31 120 views
2

我在安裝帶有PHP 5.4的CentOS 6.5上使用YUM的Memcached(帶D)PHP擴展時遇到了一些麻煩。當我運行yum install php-pecl-memcached我看到下面的:YUM沒有在CentOS 6.5上用PHP 5.4安裝php-pecl-memcached

Loaded plugins: downloadonly, fastestmirror, replace 
Loading mirror speeds from cached hostfile 
* webtatic: us-east.repo.webtatic.com 
Setting up Install Process 
Resolving Dependencies 
--> Running transaction check 
---> Package php-pecl-memcached.x86_64 0:1.0.0-1.el6 will be installed 
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcached-1.0.0-1.el6.x86_64 
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcached-1.0.0-1.el6.x86_64 
--> Running transaction check 
---> Package php-common.x86_64 0:5.3.3-27.el6_5 will be installed 
--> Processing Conflict: php54w-common-5.4.26-1.w6.x86_64 conflicts php-common < 5.4.0 
--> Finished Dependency Resolution 
Error: php54w-common conflicts with php-common-5.3.3-27.el6_5.x86_64 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

我相信我理解的問題是,在YUM回購的memcached的版本需要PHP-共5.3,但我不太明白如何超越這個問題或在哪裏找到與我的配置兼容的版本。

+0

難道一個'百勝update'第一幫助? –

+0

不幸的是,它沒有。 –

+0

這裏的問題的根本原因是您正在使用來自Webtatic回購協議的PHP 5.4,不幸的是,他們目前沒有memcached軟件包。 CentOS 6.5上的php-pecl-memcached僅適用於默認存儲庫中的PHP 5.3。 – ADi3ek

回答

1

卸載php54w-common,然後在安裝php-pecl-memcached應該有助於解決衝突:

yum remove php54w-common 
yum install php-pecl-memcached 

但是,也許你可以使用軟件集合(可用於CentOS的),而不是該回購php54w-common從何而來。有兩個PHP 5.4和5.5:

但也有更多的PHP構建,以及:

https://www.softwarecollections.org/en/scls/?search=php