For God-knows-what reason, the libmcrypt and libmhash aren’t included in the default repository for CentOS 6 or Red Hat Enterprise Linux 6. So you’ll run into the following when trying to compile PHP.
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
And you can’t install it.
# yum install libmcrypt-devel ... No package libmcrypt-devel available. Error: Nothing to do
# rpm -ivh “http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm”
And you can install it as “yum install libmcrypt-devel” again. Or libmhash, just the same.