尝试 运行 安装 php-xml 出现错误
try run install php-xml get error
centos 6.5 yum php 5.5.35 I 运行 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)
我在网上找了很久。但是没有用。请帮助或尝试提供一些想法如何实现这一目标
PHP 5.5.35 是从 "remi-php55" 安装的,默认情况下未启用,因此您需要启用它才能获得正确的 php-xml 版本.
或者:
yum --enablerepo=remi-php55 install php-xml
或更好(以避免将来出现问题,并获取更新)
yum install yum-utils
yum-config-manager --enable remi-php55
yum install php-xml
centos 6.5 yum php 5.5.35 I 运行 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)
我在网上找了很久。但是没有用。请帮助或尝试提供一些想法如何实现这一目标
PHP 5.5.35 是从 "remi-php55" 安装的,默认情况下未启用,因此您需要启用它才能获得正确的 php-xml 版本.
或者:
yum --enablerepo=remi-php55 install php-xml
或更好(以避免将来出现问题,并获取更新)
yum install yum-utils
yum-config-manager --enable remi-php55
yum install php-xml