我在运行带有PHP 5.4的CentOS 6.5上使用YUM的Memcached(带有D)PHP扩展时遇到了一些麻烦。当我运行yum install 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 repo中的memcached版本需要php-common-5.3但是我不太明白如何超越这个问题或者在哪里找到与我的配置兼容的版本。
答案 0 :(得分:1)
卸载php54w-common
然后安装php-pecl-memcached
应有助于解决冲突:
yum remove php54w-common
yum install php-pecl-memcached
但是,也许您可以使用软件集合(可用于CentOS)而不是代理php54w-common
来自。 PHP 5.4和5.5都有:
但是还有更多PHP构建: