gpt4 book ai didi

php - 在 centos 6 上使用 yum install php-pear 时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 04:02:17 24 4
gpt4 key购买 nike

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

[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

最佳答案

这是因为php-pear的“remi Repository”中的依赖包与centos系统默认Repository中的依赖包冲突,导致该软件的版本不对应。

这样你就可以删除位于/etc/yum.repos.d/中的“remi Repository”或者通过“rpm -e xxx”命令卸载“remi repo”。

关于php - 在 centos 6 上使用 yum install php-pear 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22575220/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com