http://blog.csdn.net/lxlmj/article/details/22283043php
[note]:centos
http://serverfault.com/questions/340709/install-php-mcrypt-on-centos-6this
Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installedurl
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:.net
$ rpm -qa | grep epel epel-release-6-5.noarch
and the mirrorlist
(in /etc/yum.repos.d/epel.repo
) point to the right path:code
[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
)server