[英]Unable to yum install PDO in PHP 7 (conflict)
我剛剛在Centos 7服務器上成功安裝了新的PHP 7。 但是,我無法安裝PDO。 當我更新yum然后運行yum install php-pdo
我得到以下輸出。
php-pdo是否要求PHP低於5.5?
PHP 5先前已安裝在我的服務器上,但我將其所有軟件包都刪除了。
我該如何解決這個問題?
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.denit.net
* epel: ftp.nluug.nl
* extras: mirror.denit.net
* updates: mirror.denit.net
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-pdo.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-pdo-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Conflict: php70w-common-7.0.0-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
我現在解決了我的問題,可以在其前面加上“ php70w”來安裝所有符合php 7的軟件包,例如
yum install php70w-mbstring php70w-json php70w-gd php70w-mcrypt
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.