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

标签 php linux

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

[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/

相关文章:

php - 在 HTML 中自定义 CSS

php - Wordpress 自动关闭 <a> 标签

linux - 监控控制台输出

linux - 从 ifconfig 输出中提取 MAC 地址

php - 迁移后 Drupal 站点非常慢

php - Laravel 5.3 在哪里保存授权数据?

php - 为什么即使使用功能强大的服务器,我的网站仍然如此缓慢

linux - 如何在linux中查找特定进程每5秒的内存消耗

linux - 如何更改 Visual Studio Code 用户界面的字体?

linux - Linux阻塞与非阻塞串行读取