2017-06-02 139 views
2

我已经安装了PHP7,并且我想安装php-xml,但它不会让我因为我的系统上仍然存在PHP 5.4的冲突痕迹,我无法摆脱。不能安装php-xml for PHP7(CentOS)

这里是什么样子的,当我尝试运行 “荫安装PHP的XML”:

$ sudo yum install php-xml Loaded plugins: fastestmirror, langpacks, replace Loading mirror speeds from cached hostfile * base: mirror.fileplanet.com * epel: mirror.sjc02.svwh.net * extras: mirror.fileplanet.com * ius: mirrors.kernel.org * remi-safe: mirrors.mediatemple.net * rpmfusion-free-updates: mirror.math.princeton.edu * rpmfusion-nonfree-updates: mirror.math.princeton.edu * updates: mirror.fileplanet.com * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package php-xml.x86_64 0:5.4.16-42.el7 will be installed --> Processing Dependency: php-common(x86-64) = 5.4.16-42.el7 for package: php-xml-5.4.16-42.el7.x86_64 --> Running transaction check ---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed --> Processing Conflict: php70w-common-7.0.19-1.w7.x86_64 conflicts php-common Finished Dependency Resolution Error: php70w-common conflicts with php-common-5.4.16-42.el7.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest


我甚至试图删除PHP常见我刚刚得到:

$ sudo yum remove php-common-5.4.16-42.el7.x86_64 Loaded plugins: fastestmirror, langpacks, replace No Match for argument: php-common-5.4.16-42.el7.x86_64 No Packages marked for removal


因此它与php-common-5.4.16-42.el7.x86_64相冲突,但php-common-5.4.16-42.el7.x86_64 doens't does not exist。
任何帮助,不胜感激。
另外,我注意到它说

<code> 
Package php-xml.x86_64 0:5.4.16-42.el7 will be installed 
</code> 

但我不希望它为PHP 5.4,我想它PHP7。

+1

尝试'安装php70w-xml' – castis

+2

嗨castis,工作。非常感谢。 –

+0

如何将此标记为已完成,以便绿色选中标记出现? –

回答

3

由于您安装了webtatic repo,因此这些php安装应为php70w-<package>

yum install php70w-xml应该这样做。

+0

是的,工作,感谢您的意见。 –