【发布时间】:2016-04-04 13:43:03
【问题描述】:
我刚刚在我的 Centos 7 服务器上成功安装了新的 PHP 7。
但是我无法安装 PDO。当我更新 yum 然后运行 yum install php-pdo 我得到以下输出。
php-pdo 需要低于 5.5 的 PHP 吗?
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
【问题讨论】: