I'm having some trouble installing the Memcached (with a D) PHP extension using YUM on CentOS 6.5 with PHP 5.4. When I run yum install php-pecl-memcached
I am presented with the following:
我在使用YUM on CentOS 6.5和PHP 5.4安装Memcached(带有D) PHP扩展时遇到了一些麻烦。当我运行yum安装php- pecml -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
I believe I understand the issue to be that the version of memcached in the YUM repo requires php-common-5.3 but I don't quite understand how to move beyond this issue or where to find a version compatible with my configuration.
我认为我理解这个问题是,YUM repo中缓存的memo版本需要php-common .3,但是我不太理解如何超越这个问题,以及在哪里找到与我的配置兼容的版本。
1 个解决方案
#1
1
Uninstalling php54w-common
and then installing php-pecl-memcached
should help to resolve the conflict:
卸载php54w-common然后安装php-pecl-memcached将有助于解决冲突:
yum remove php54w-common
yum install php-pecl-memcached
But, maybe you can use Software collections (available for CentOS) instead of that repo php54w-common
comes from. There are both PHP 5.4 and 5.5:
但是,也许您可以使用软件集合(CentOS可以使用)而不是repo php54w-common。PHP 5.4和5.5都有:
- https://www.softwarecollections.org/en/scls/rhscl/php55/
- https://www.softwarecollections.org/en/scls/rhscl/php55/
- https://www.softwarecollections.org/en/scls/rhscl/php54/
- https://www.softwarecollections.org/en/scls/rhscl/php54/
but there are more PHP builds as well:
但是还有更多的PHP构建:
https://www.softwarecollections.org/en/scls/?search=php
https://www.softwarecollections.org/en/scls/?search=php
#1
1
Uninstalling php54w-common
and then installing php-pecl-memcached
should help to resolve the conflict:
卸载php54w-common然后安装php-pecl-memcached将有助于解决冲突:
yum remove php54w-common
yum install php-pecl-memcached
But, maybe you can use Software collections (available for CentOS) instead of that repo php54w-common
comes from. There are both PHP 5.4 and 5.5:
但是,也许您可以使用软件集合(CentOS可以使用)而不是repo php54w-common。PHP 5.4和5.5都有:
- https://www.softwarecollections.org/en/scls/rhscl/php55/
- https://www.softwarecollections.org/en/scls/rhscl/php55/
- https://www.softwarecollections.org/en/scls/rhscl/php54/
- https://www.softwarecollections.org/en/scls/rhscl/php54/
but there are more PHP builds as well:
但是还有更多的PHP构建:
https://www.softwarecollections.org/en/scls/?search=php
https://www.softwarecollections.org/en/scls/?search=php