我已经安装了PHP7,我想安装PHP,但是它不会让我安装,因为我的系统中仍然有PHP5.4的冲突痕迹,我无法摆脱它。
当我尝试运行“”时,如下所示:
`$ 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公共-5.4.16-42.el7.x86_64相冲突,而php-公共-5.4.16-42.el7.x86_64不存在。
任何帮助都是非常感谢的。
另外,我注意到上面写着
<code>
Package php-xml.x86_64 0:5.4.16-42.el7 will be installed
</code>但是我不想要php5.4,我想要它用于PHP7。
发布于 2017-06-02 17:44:06
既然您已经安装了webtatic回购,那么这些php安装应该是php70w-<package>。
yum install php70w-xml应该能做到这一点。
发布于 2021-04-15 23:01:01
在Centos7上,这在我的例子中是有效的:
yum install php-xmlhttps://stackoverflow.com/questions/44334128
复制相似问题