在centos 7上安装php xml
正在尝试在centos7(PHP5.6)上安装php xml 获取以下错误在centos 7上安装php xml,php,xml,centos7,Php,Xml,Centos7,正在尝试在centos7(PHP5.6)上安装php xml 获取以下错误 [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.inf
[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来运行我试图运行的脚本
提前感谢尝试通过运行以下命令降级
php公共库:()
由于您有来自remi-php56存储库的PHP5.6,因此必须启用相同的存储库来安装其他扩展
正如秘书长所解释的:
另外,您应该禁用atomic和WebStatic,因为您不从那里使用PHP。错误说明PHP xml
lib具有安装的PHP common
lib作为依赖项,但问题是安装的PHP common
版本比PHP xml
所需的版本更新。一种解决方案是尝试降级php common
,您可能需要做一些研究,看看是否真的适合这样做。谢谢@claudio,请参阅errors。
sudo yum downgrade php php-common php-cli
Installed: php-common-5.6.33-1.el7.remi.x86_64 (@remi-php56)
yum-config-manager --enable remi-php56
yum install php-xml