2012-12-24 106 views
-1

我試圖在CentOS上安裝mcrypt for PHP 5 6.我有EPEL存儲庫所有的設置,但每當我嘗試安裝它,我會得到以下內容。CentOS 6/PHP5 - 無法安裝mcrypt?

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

我有EPEL庫中的所有設置...

除非你不這樣做,因爲它試圖您EL6系統上安裝EL5包。驗證您的EPEL安裝並重試。

+0

嗯......看來我確實意外地做了這個= /現在當我嘗試安裝正確的EL6時,它說與EL5的衝突。我如何刪除El5? –

+0

你的意思是'epel-release'軟件包?使用yum刪除它。 –

+0

我可以得到確切的語法嗎?我不知道如何。 –