【问题标题】:YUM not installing php-pecl-memcached on CentOS 6.5 with PHP 5.4YUM 没有在 CentOS 6.5 和 PHP 5.4 上安装 php-pecl-memcached
【发布时间】: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


【解决方案1】:

卸载php54w-common,然后安装php-pecl-memcached应该有助于解决冲突:

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

但是,也许您可​​以使用软件集合(可用于 CentOS)而不是来自 php54w-common 的那个 repo。 PHP 5.4 和 5.5 都有:

但还有更多 PHP 版本:

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

【讨论】:

    猜你喜欢
    • 2016-01-18
    • 1970-01-01
    • 2011-01-08
    • 2013-10-31
    • 2015-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多