星光熠熠 2013-02-21
ForGod-knows-whatreason,thelibmcryptandlibmhasharen'tincludedinthedefaultrepositoryforCentOS6orRedHatEnterpriseLinux6.Soyou'llrunintothefollowingwhentryingtocompilePHP.
configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.
Andyoucan'tinstallit.
#yuminstalllibmcrypt-devel
...
Nopackagelibmcrypt-develavailable.
Error:Nothingtodo
The(only)solutionsofar:grabthepackagesfromtheEPELrepository.DownloadtheRPM(it'ssameRPMfori386,i686andx86_64)andinstallit.
#rpm-ivh"http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm"
Andyoucaninstallitas"yuminstalllibmcrypt-devel"again.Orlibmhash,justthesame.
ByMattiasGeniar
—Thursday,November24,2011
CommentFeed
转自http://mattiasgeniar.be/2011/11/24/rhel-6-and-centos-6-missing-libmcrypt-and-libmhash-in-default-repository/