Installing mcrypt on CentOS via EPEL


I have a Media Temple DV 4.0 running CentOS 5.5 which needed php-mcrypt.

yum install php-mcrypt fails with a conflict between php-common and php53-common. Here’s how to to get php53-mcrypt via EPEL.

First download the repo rpm: wget http://mirrors.nebo.edu/public/epel//5/x86_64/epel-release-5-4.noarch.rpm

Note CentOS 6 has a different rpm.

Install the repo: rpm -ivh epel-release-5-4.noarch.rpm

http://wiki.centos.org/AdditionalResources/Repositories has this warning about EPEL:
“So, make SURE you are using the Priorities yum plugin if you are using EPEL….”

So, let’s do that:
yum install yum-priorities

Check to make sure it’s enabled:
cat /etc/yum/pluginconf.d/priorities.conf

and add the priority rules per http://wiki.centos.org/PackageManagement/Yum/Priorities#head-6f52124e909c1691eb0c501ba38ae9202b66d6da, setting the default repos high and EPEL low.
vi /etc/yum.repos.d/*

Now we can install the module: yum install php53-mcrypt.

/etc/init.d/httpd graceful and you’re done.

No Comments

No comments yet.

Comments RSS

Sorry, the comment form is closed at this time.


powered by WordPress     themed by Mukkamu     presented by ideaharbor.org     everything else by steve hulet