【问题标题】:Unable to yum install PDO in PHP 7 (conflict)无法在 PHP 7 中安装 PDO(冲突)
【发布时间】: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

【问题讨论】:

    标签: php pdo centos yum


    【解决方案1】:

    我现在解决了我的问题,我可以通过在它前面加上“php70w”来安装所有 php 7 兼容的包,例如

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

    【讨论】:

      猜你喜欢
      • 2016-04-24
      • 2014-02-09
      • 2015-10-13
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 2015-01-22
      • 2015-12-31
      • 2013-10-18
      相关资源
      最近更新 更多