2016-04-28 70 views
0

的CentOS 6.5的yum PHP 35年5月5日我跑yum install php-xml尝试运行安装PHP的XML得到错误

收到错误消息:

Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.nwsuaf.edu.cn * epel: mirrors.opencas.cn * extras: mirrors.pubyun.com * remi-safe: mirror.awanti.com * updates: mirrors.pubyun.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-xml.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-xml-5.3.3-46.el6_7.1.x86_64 --> Finished Dependency Resolution Error: Package: php-xml-5.3.3-46.el6_7.1.x86_64 (updates) Requires: php-common(x86-64) = 5.3.3-46.el6_7.1 Installed: php-common-5.5.35-1.el6.remi.x86_64 (@remi-php55) php-common(x86-64) = 5.5.35-1.el6.remi Available: php-common-5.3.3-40.el6_6.x86_64 (base) php-common(x86-64) = 5.3.3-40.el6_6 Available: php-common-5.3.3-46.el6_6.x86_64 (updates) php-common(x86-64) = 5.3.3-46.el6_6 Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates) php-common(x86-64) = 5.3.3-46.el6_7.1 You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: php5-xmlreader-5.5.14-38.1.x86_64 has missing requires of php5 = ('0', '5.5.14', None) php5-xmlreader-5.5.14-38.1.x86_64 has missing requires of php5-dom = ('0', '5.5.14', None)

我寻找了很久净。但没用。请帮助或尝试提供一些想法如何实现此目的

+0

不知道哪里PHP5-的XMLReader从何而来,但你需要删除它。 –

回答

0

PHP 5.5.35从“remi-php55”安装,默认情况下未启用,因此您需要启用它以获取正确版本的php-xml。

Configuration Wizard

或者:

yum --enablerepo=remi-php55 install php-xml 

或以上(以避免未来的问题,并获得更新)

yum install yum-utils 
yum-config-manager --enable remi-php55 
yum install php-xml 
+0

非常感谢您!根据您的方法,我将它安装成功 –