linux - 尝试安装 mcrypt 扩展 centos 7 时出错

linux - 尝试安装 mcrypt 扩展 centos 7 时出错

我试图为 centos 7(64 位)安装 mcrypt 扩展,但我快要疯了,似乎无法解决问题,有人可以指导我这出了什么问题或者告诉我解决问题的具体命令吗?

[root@hawk-enive-ee ~]# sudo yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * epel: mirror.de.leaseweb.net
 * extras: ftp.plusline.de
 * updates: mirror.de.leaseweb.net
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-5.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-mcrypt-5.4.16-5.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-mcrypt-5.4.16-5.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.3.el7_2 will be installed
--> Processing Conflict: php70w-common-7.0.12-1.w7.x86_64 conflicts php-common < 7.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-36.3.el7_2.x86_64
 You could try using --skip-broken to work around the problem

答案1

您的基本 PHP 安装似乎来自 Webtatic。相应的mcrypt包名为php70w-mcrypt

yum install php70w-mcrypt

相关内容