-1

我正在尝试在CentOS 6 上为 PHP 5 安装 mcrypt。我已经设置了 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,所以我尝试更新它,但它说它已经全部是最新的。

4

1 回答 1

1

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

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

于 2012-12-24T23:57:38.670 回答