There was a problem installing php-mcrypt under CentOS 6.3 x86_64: Error:cannot retrieve Metalink for Repository:epel. Verify its path and try again, you need to install the Epel source.
Solution: A sentence: The/etc/yum.repos.d/epel.repo, the document 3rd line of comments removed, the fourth line comment out. Specific as follows:
Open the/etc/yum.repos.d/epel.repo and
- [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
Modify to
- [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
Re-clean source, reinstall
- Yum Clean All
- The package that Yum Install-y needs
If not, modify DNS to add it under/etc/resolv.conf:
NameServer 8.8.8.8
Search Localdomain
Then restart the Network Service: Service network restart
Yum appears when installing: Cannot retrieve Metalink for Repository:epel. Verify its path and try again