今天要在CentOS 5.8上安装magento,发现php扩展php53-mcrypt无法安装,默认库里没有,网上找的rpm又装不了。后来在网上看到一篇文章,要使用testing repo。
cd /etc/yum.repos.d wget http://dev.centos.org/centos/5/CentOS-Testing.repo
导入这个库的 gpg key。
rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
现在 ,就可以安装了。
yum --enablerepo=c5-testing install php-mcrypt