试图安装memcached php时出现以下错误
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中的文件冲突
仍有错误
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发布于 2017-02-26 17:04:13
安装:php-公共-5.5.38-7.el6.remi.x86_64(@remi-php 55)
从“remi- PHP 55”存储库安装了PHP5.5
因此,您需要从同一个存储库中提取扩展。
更简单的方法是默认启用它:
yum install yum-utils
yum-config-manager --enable remi-php55
yum install php-pecl-memcache正如向导指令中所解释的那样。
注意:PHP5.5是2016年7月开始的EOL,因此我衷心建议您考虑更新到受支持的版本(5.6+),从而启用remi-php56存储库。
发布于 2017-02-26 15:46:13
首先,清洁百胜:
yum clean all作为最佳实践,我们将更新我们的包:
yum -y update然后,安装扩展和相关包就像只运行一个命令一样简单::
yum -y install php-pecl-memcache步骤2:验证安装,重新启动memcached和httpd:
systemctl restart memcached
systemctl restart httpd使用以下命令查看已安装的PHP模块的信息:
php -m | grep memcachehttps://serverfault.com/questions/834990
复制相似问题