CentOS 6 / PHP5 - 无法安装mcrypt?

时间:2012-12-24 23:51:11

标签: php centos mcrypt

我正在尝试在CentOS上为PHP 5安装mcrypt 6.我已经设置了EPEL存储库,但每当我尝试安装它时,我都会得到以下内容。

yum --enablerepo=epel install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: dallas.tx.mirror.xygenhosting.com
* epel: fedora-epel.mirror.lstn.net
* extras: centos.mirror.lstn.net
* updates: mirror.rackspace.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-    5.el5.x86_64
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.1.6-    5.el5.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.7-5.el5 will be installed
---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-    5.el5.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.1.6-5.el5.x86_64 (epel)
       Requires: php-api = 20041225
       Installed: php-common-5.3.3-14.el6_3.x86_64 (@updates)
           php-api = 20090626
       Available: php-common-5.3.3-3.el6_2.8.x86_64 (base)
           php-api = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我看到它需要php-api,所以我尝试更新它,但它说它已经全部都是最新的。

1 个答案:

答案 0 :(得分:1)

  

我已经设置了EPEL存储库......

除非您不这样做,因为它正试图在您的EL6系统上安装EL5软件包。验证您的EPEL安装,然后重试。

相关问题