如何将“memcached”安装到 php 5.6?

如何将“memcached”安装到 php 5.6?

我已经从该来源安装了 PHP 5.6.20。https://webtatic.com/packages/php56/

但是我无法安装 memcached。只能安装 memcache。
如何安装 memcached升级到 PHP 5.6 吗?

这是我尝试过的。

[root@testcentos ~]# yum -y install php56w-pecl-memcached.x86_64
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror2.totbb.net
 * epel: ftp.jaist.ac.jp
 * extras: mirrors.nwsuaf.edu.cn
 * remi-safe: mirror.neolabs.kz
 * updates: mirror2.totbb.net
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w-pecl-memcached.x86_64 0:2.2.0-2.w6 will be installed
--> Processing Dependency: php-pecl-igbinary(x86-64) for package: php56w-pecl-memcached-2.2.0-2.w6.x86_64
--> Processing Dependency: libmemcachedutil.so.2()(64bit) for package: php56w-pecl-memcached-2.2.0-2.w6.x86_64
--> Processing Dependency: libmemcached.so.11()(64bit) for package: php56w-pecl-memcached-2.2.0-2.w6.x86_64
--> Running transaction check
---> Package libmemcached10.x86_64 0:1.0.16-1.ius.el6 will be installed
---> Package php56w-pecl-igbinary.x86_64 0:1.2.1-2.w6 will be installed
--> Processing Conflict: libmemcached10-1.0.16-1.ius.el6.x86_64 conflicts libmemcached < 1.0
--> Finished Dependency Resolution
Error: libmemcached10 conflicts with libmemcached-0.31-1.1.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

首先测试

yum remove libmemcached-0.31-1.1.el6.x86_64

进而

yum install php56w-pecl-memcached.x86_64

要不就

yum install php56w-pecl-memcached

问候。

相关内容