繁体   English   中英

在centos 6上安装yum安装php-pear时出现问题

[英]Getting issue with yum install php-pear on centos 6

我遇到了这个问题,请帮忙解决。

[root@mynginx lib64]# yum install php-pear
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.secureax.com
* epel: mirror01.idc.hinet.net
* extras: centos.mirror.secureax.com
* updates: centos.mirror.secureax.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
--> Processing Dependency: php-cli >= 5.1.0-1 for package: 1:php-pear-1.9.4-4.el6.noarch
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-cli-5.3.3-   27.el6_5.x86_64
--> Finished Dependency Resolution
Error: Package: php-cli-5.3.3-27.el6_5.x86_64 (updates)
       Requires: php-common(x86-64) = 5.3.3-27.el6_5
       Installed: php-common-5.4.26-1.el6.remi.x86_64 (@remi)
           php-common(x86-64) = 5.4.26-1.el6.remi
       Available: php-common-5.3.3-26.el6.x86_64 (base)
           php-common(x86-64) = 5.3.3-26.el6
       Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
           php-common(x86-64) = 5.3.3-27.el6_5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

这是因为“ remi存储库”中的php-pear的Dependencies软件包与centos系统默认存储库中的冲突,该软件的版本不对应。

因此您可以删除/etc/yum.repos.d/中的“ remi Repository”,或通过“ rpm -e xxx”命令卸载“ remi repo”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM