我尝试使用yum install php-xml在CentOS 6.5上安装PHP5-DOM,并得到这个错误:
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?
您最初从remi存储库安装了PHP,但您在添加此软件包时忘记启用存储库。
要解决该问题,请暂时重新启用存储库: yum --enablerepo=remi install php-xml或通过编辑/etc/yum.repos.d/remi.repo永久性地启用。