无法在PHP 7中yum安装PDO(冲突)

无法在PHP 7中yum安装PDO(冲突),php,pdo,centos,yum,Php,Pdo,Centos,Yum,我刚刚在Centos 7服务器上成功安装了新的PHP7。 但是,我无法安装PDO。当我更新yum并运行yum安装php-pdo时,我得到以下输出 php pdo是否需要低于5.5的php PHP5以前安装在我的服务器上,但我删除了它及其所有包 我如何解决这个问题 Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirror.denit.net * epel

我刚刚在Centos 7服务器上成功安装了新的PHP7。 但是,我无法安装PDO。当我更新yum并运行
yum安装php-pdo
时,我得到以下输出

php pdo是否需要低于5.5的php

PHP5以前安装在我的服务器上,但我删除了它及其所有包

我如何解决这个问题

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
加载的插件:最快的镜像,优先级
从缓存的主机文件加载镜像速度
*基础:mirror.denit.net
*epel:ftp.nluug.nl
*附加:mirror.denit.net
*更新:mirror.denit.net
*WebStatic:uk.repo.webstatic.com
解决依赖关系
-->运行事务检查
--->将安装程序包php-pdo.x86_64 0:5.4.16-36.el7_1
-->处理依赖项:php-common(x86-64)=5.4.16-36.el7_1,对于包:php-pdo-5.4.16-36.el7_1.x86_64
-->运行事务检查
--->将安装程序包php-common.x86_64 0:5.4.16-36.el7_1
-->处理冲突:php70w-common-7.0.0-1.w7.x86_64冲突php-common<5.5.0
-->已完成依赖项解析
错误:php70w与php-common-5.4.16-36.el7_1.x86_64发生常见冲突

我现在解决了我的问题,我可以安装所有符合PHP7的软件包,方法是在它前面加上“php70w”,例如

yum install php70w-mbstring php70w-json php70w-gd php70w-mcrypt