尝试运行安装php-xml获取错误

时间:2016-04-28 08:30:52

标签: centos6

centos 6.5 yum php 5.5.35我运行yum install 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)

我在网上搜索了很长时间。但没用。请帮助或尝试提供一些如何实现此目的的想法

1 个答案:

答案 0 :(得分: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