2017-06-02 136 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

是的,工作,感謝您的意見。 –