我试图安装为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
您的基本PHP安装似乎来自Webtatic。 相应的mcrypt包名为php70w-mcrypt :
yum install php70w-mcrypt