我尝试在 CentOS 6.5 上安装 PHP5-DOMyum install php-xml
并收到此错误:
Error: Package: php-xml-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.28-1.el6.remi.x86_64 (@remi)
php-common(x86-64) = 5.4.28-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 round the problem
You could try running: rpm -Va --nofiles --nodigest
我如何在 php 5.4 上安装它?
答案1
您最初从 remi 存储库安装了 PHP,但是您忘记在添加此包时启用该存储库。
要修复该问题,请重新启用存储库(可以暂时启用:yum --enablerepo=remi install php-xml
或通过编辑永久启用)/etc/yum.repos.d/remi.repo
。