http://blog.csdn.net/lxlmj/article/details/22283043
[note]:
http://serverfault.com/questions/340709/install-php-mcrypt-on-centos-6
Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
Pay attention to the el5
, it means that this package is pulling from the EL5 repo. Make sure that the epel-release-6-5.noarch.rpm
has been installed successfully:
$ rpm -qa | grep epel
epel-release-6-5.noarch
and the mirrorlist
(in /etc/yum.repos.d/epel.repo
) point to the right path:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
(epel-6
instead of epel-5
)