Php 尝试安装mcrypt扩展时出错
我正在6.4 x64下运行PHP版本5.4.23,并尝试安装mcrypt扩展:Php 尝试安装mcrypt扩展时出错,php,centos,mcrypt,Php,Centos,Mcrypt,我正在6.4 x64下运行PHP版本5.4.23,并尝试安装mcrypt扩展: [root@user]# yum install php-mcrypt* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.osuosl.org * epel: ftp.osuosl.org * extras: ftp.osuosl.org * updates: ftp.osuosl.org
[root@user]# yum install php-mcrypt*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.osuosl.org
* epel: ftp.osuosl.org
* extras: ftp.osuosl.org
* updates: ftp.osuosl.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-9.el6 will be installed
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.23-1.el6.remi.x86_64 (@remi)
php(api) = 20100412-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(api) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(api) = 20090626
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.23-1.el6.remi.x86_64 (@remi)
php(zend-abi) = 20100525-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(zend-abi) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(zend-abi) = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
如何解决此问题?您的yum库中的php mcrypt版本似乎是针对php 5.3.3的 您的PHP版本是5.4.23。试试这个:
http://rpms.southbridge.ru/rhel6/php-5.4/x86_64/php-mcrypt-5.4.23-1.el6.remi.x86_64.rpm
从上面下载RPM并运行RPM-ivh
但是,请确保单独安装了libmcrypt。Yum会安装所有依赖项,因此如果您使用Yum,它会安装libmcrypt我尝试了所有这些方法,但也发生了相同的错误