【发布时间】:2014-05-10 19:03:39
【问题描述】:
我在 CentOS 6.5 和 PHP 5.4 上使用 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,但我不太明白如何解决这个问题或在哪里找到与我的配置兼容的版本。
【问题讨论】:
-
yum update有帮助吗? -
不幸的是,它没有。
-
这里问题的根本原因是您使用的是来自 Webtatic repo 的 PHP 5.4,不幸的是他们目前没有 memcached 包。 CentOS 6.5 上的 php-pecl-memcached 仅适用于默认存储库中的 PHP 5.3。
标签: php memcached centos6 yum pecl