首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >试图安装memcached错误

问试图安装memcached错误
EN

Server Fault用户
提问于 2017-02-26 14:19:10
回答 2查看 1.2K关注 0票数 0

试图安装memcached php时出现以下错误

代码语言:javascript
复制
 yum install php-pecl-memcache
Loaded plugins: fastestmirror, security, universal-hooks
Setting up Install Process
Loading mirror speeds from cached hostfile
 * EA4: 208.100.0.204
 * base: chicago.gaminghost.co
 * epel: mirror.unl.edu
 * extras: denver.gaminghost.co
 * remi: repo1.dal.innoscale.net
 * remi-safe: repo1.dal.innoscale.net
 * updates: mirror.sesp.northwestern.edu
remi                                                     | 2.9 kB     00:00
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-memcache.x86_64 0:3.0.8-2.el6.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Running transaction check
---> Package php-pear.noarch 1:1.10.1-12.el6.remi will be installed
--> Processing Dependency: php-xml for package: 1:php-pear-1.10.1-12.el6.remi.noarch
--> Processing Dependency: php-posix for package: 1:php-pear-1.10.1-12.el6.remi.noarch
--> Processing Dependency: php-cli for package: 1:php-pear-1.10.1-12.el6.remi.noarch
---> Package php-pecl-memcache.x86_64 0:3.0.8-2.el6.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-13.el6.remi for package: php-cli-5.4.45-13.el6.remi.x86_64
---> Package php-pecl-memcache.x86_64 0:3.0.8-2.el6.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64
---> Package php-process.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-13.el6.remi for package: php-process-5.4.45-13.el6.remi.x86_64
---> Package php-xml.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-13.el6.remi for package: php-xml-5.4.45-13.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-xml-5.4.45-13.el6.remi.x86_64 (remi)
           Requires: php-common(x86-64) = 5.4.45-13.el6.remi
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.38-7.el6.remi
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-47.el6
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php-common(x86-64) = 5.3.3-48.el6_8
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-12.el6.remi
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-13.el6.remi
Error: Package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64 (remi)
           Requires: php(zend-abi) = 20100525-x86-64
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
Error: Package: php-pecl-memcache-3.0.8-2.el6.remi.5.4.x86_64 (remi)
           Requires: php(api) = 20100412-x86-64
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
Error: Package: php-process-5.4.45-13.el6.remi.x86_64 (remi)
           Requires: php-common(x86-64) = 5.4.45-13.el6.remi
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.38-7.el6.remi
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-47.el6
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php-common(x86-64) = 5.3.3-48.el6_8
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-12.el6.remi
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-13.el6.remi
Error: Package: php-cli-5.4.45-13.el6.remi.x86_64 (remi)
           Requires: php-common(x86-64) = 5.4.45-13.el6.remi
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.38-7.el6.remi
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-47.el6
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php-common(x86-64) = 5.3.3-48.el6_8
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-12.el6.remi
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-13.el6.remi
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

运行centos 6.8 php 5.6

现在开始跟踪

事务检查错误:文件/usr/bin/php安装php-cli-5.5.38-7.el6.remi.x86_64与包ea-php-cli-0.2.0-1.1.cPanel.x86_64中的文件冲突

仍有错误

代码语言:javascript
复制
Error: Package: php-cli-5.4.45-13.el6.remi.x86_64 (remi)
           Requires: php-common(x86-64) = 5.4.45-13.el6.remi
           Installed: php-common-5.5.38-7.el6.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.38-7.el6.remi
           Available: php-common-5.3.3-47.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-47.el6
           Available: php-common-5.3.3-48.el6_8.x86_64 (updates)
               php-common(x86-64) = 5.3.3-48.el6_8
           Available: php-common-5.4.45-12.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-12.el6.remi
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php-common(x86-64) = 5.4.45-13.el6.remi
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
EN

回答 2

Server Fault用户

发布于 2017-02-26 17:04:13

安装:php-公共-5.5.38-7.el6.remi.x86_64(@remi-php 55)

从“remi- PHP 55”存储库安装了PHP5.5

因此,您需要从同一个存储库中提取扩展。

更简单的方法是默认启用它:

代码语言:javascript
复制
yum install yum-utils
yum-config-manager --enable remi-php55
yum install php-pecl-memcache

正如向导指令中所解释的那样。

注意:PHP5.5是2016年7月开始的EOL,因此我衷心建议您考虑更新到受支持的版本(5.6+),从而启用remi-php56存储库。

票数 2
EN

Server Fault用户

发布于 2017-02-26 15:46:13

步骤1:安装Memcached PHP扩展

首先,清洁百胜:

代码语言:javascript
复制
yum clean all

作为最佳实践,我们将更新我们的包:

代码语言:javascript
复制
yum -y update

然后,安装扩展和相关包就像只运行一个命令一样简单::

代码语言:javascript
复制
yum -y install php-pecl-memcache

步骤2:验证安装,重新启动memcached和httpd:

代码语言:javascript
复制
systemctl restart memcached
systemctl restart httpd

使用以下命令查看已安装的PHP模块的信息:

代码语言:javascript
复制
php -m | grep memcache
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/834990

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档