在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,CentOS自身的源是没有php-mcrypt的,所以使用 yum install php-mcrypt是没有这个包。因此需要安装epel源。
先
接下来就出现了:
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
打开/etc/yum.repos.d/epel.repo,将
修改为
再清理源,重新安装
如果还是不行,修改DNS,到/etc/resolv.conf下添加一下:
nameserver 8.8.8.8
search localdomain
然后重启network服务
yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again
原文:http://www.cnblogs.com/dadong616/p/5062727.html