在centos 7上安装php-xml [英] install php-xml on centos 7
本文介绍了在centos 7上安装php-xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
试图在centos7(php 5.6)上安装php-xml
trying to install php-xml on centos7 (php 5.6)
出现以下错误
[root@server ~]# sudo yum install php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www4.atomicorp.com
* epel: epel.mirror.constant.com
* remi-safe: remi.mirror.ate.info
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.4.45-56.el7.art will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-56.el7.art for package: php-xml-5.4.45-56.el7.art.x86_64
--> Finished Dependency Resolution
Error: Package: php-xml-5.4.45-56.el7.art.x86_64 (atomic)
Requires: php-common(x86-64) = 5.4.45-56.el7.art
Installed: php-common-5.6.33-1.el7.remi.x86_64 (@remi-php56)
php-common(x86-64) = 5.6.33-1.el7.remi
Available: php-common-5.4.16-42.el7.x86_64 (base)
php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-43.el7_4.x86_64 (updates)
php-common(x86-64) = 5.4.16-43.el7_4
Available: php-common-5.4.45-54.el7.art.x86_64 (atomic)
php-common(x86-64) = 5.4.45-54.el7.art
Available: php-common-5.4.45-56.el7.art.x86_64 (atomic)
php-common(x86-64) = 5.4.45-56.el7.art
...
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我读过并且有人建议我降级我的php,但是,我要运行的脚本需要5.6。
I've read around and people are suggesting i downgrade my php, however, i need 5.6 for scripts im trying to run.
预先感谢
推荐答案
Installed: php-common-5.6.33-1.el7.remi.x86_64 (@remi-php56)
当您从 remi获得php 5.6时-php56 存储库,您必须启用同一存储库才能安装其他扩展。
As you have php 5.6 from remi-php56 repository you have to enable the same repository to install additional extensions.
如向导:
yum-config-manager --enable remi-php56
yum install php-xml
PS并且您应该禁用atomic和webtatic,因为您从那里不使用PHP。
P.S. and you should disable atomic and webtatic, as you don't use PHP from there.
这篇关于在centos 7上安装php-xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文