0

I am trying to install the mcrypt extension on my CentOS 6 VPS. I have done the EPEL rpm and then updated everything. Now, I keep getting this error and I've also installed php-api.

[root@vps ~]# yum -y install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.raystedman.net
 * epel: mirror.oss.ou.edu
 * extras: mirror.teklinks.com
 * updates: bay.uchicago.edu
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
--> 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-23.el6_4.x86_64 (@updates)
               php-api = 20090626
           Available: php-common-5.3.3-22.el6.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

AmI skipping/missing something important? Please don't down vote this.

Thank you!

1 Answer 1

1

You installed the wrong EPEL RPM.

You are running CentOS 6, but you installed the epel-release RPM for EPEL 5.

Remove it and install the RPM for EPEL 6.

6
  • When trying wget dl.fedoraproject.org/pub/epel/6/x86_64/… then doing yum install epel-release-6-8.noarch.rpm it throws this error at me: Setting up Install Process Examining epel-release-6-8.noarch.rpm: epel-release-6-8.noarch epel-release-6-8.noarch.rpm: does not update installed package. Error: Nothing to do Sep 30, 2013 at 7:21
  • You didn't remove the existing package first, as I already said. Sep 30, 2013 at 7:23
  • i.imgur.com/H0dC3wt.png Sep 30, 2013 at 7:25
  • That image says nothing about whether you removed the old epel-release package. Sep 30, 2013 at 7:27
  • Am I installing EPEL 6-8? Sep 30, 2013 at 7:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .