我刚刚用Nginx安装了php FASTCGI(php-fpm)v.5.5。在一个新的Centos6.4上
我正在尝试安装memcached但遇到很多问题.....这是我的步骤:
/bin/rpm -ivh http://ftp.uninett.no/linux/epel/6/i386/epel-release-6-8.noarch.rpm
/bin/rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi,remi-php55 install nginx php-common php-fpm php-mysqlnd
但是在尝试添加memcached时:
yum install php-pecl-memcached.x86_64 (Extension to work with the Memcached caching daemon)
它失败了......:
> 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
> --> Processing Dependency: libmemcached.so.2(libmemcached_2)(64bit) for package: php-pecl-memcached-1.0.0-1.el6.x86_64
> --> Processing Dependency: libmemcached.so.2()(64bit) for package: php-pecl-memcached-1.0.0-1.el6.x86_64
> --> Running transaction check
> ---> Package libmemcached.x86_64 0:0.31-1.1.el6 will be installed
> ---> 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
> --> Finished Dependency Resolution Error: Package: php-pecl-memcached-1.0.0-1.el6.x86_64 (epel)
> Requires: php(zend-abi) = 20090626
> Installed: php-common-5.5.6-1.el6.remi.x86_64 (@remi-php55)
> php(zend-abi) = 20121212-64
> Available: php-common-5.3.3-22.el6.x86_64 (base)
> php(zend-abi) = 20090626
> Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
> php(zend-abi) = 20090626 Error: Package: php-pecl-memcached-1.0.0-1.el6.x86_64 (epel)
> Requires: php(api) = 20090626
> Installed: php-common-5.5.6-1.el6.remi.x86_64 (@remi-php55)
> php(api) = 20121113-64
> Available: php-common-5.3.3-22.el6.x86_64 (base)
> php(api) = 20090626
> Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
> php(api) = 20090626 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles
> --nodigest
它在PHP 5.4上运行良好....我错过了什么? THX。
答案 0 :(得分:6)
根据评论添加了答案:
yum --enablerepo=remi,remi-php55 install php-pecl-memcached.x86_64
或者如上所述,为yum添加永久物。