configure: error: mcrypt.h not found. Please reinstall libmcrypt.To fix this I just add these Repos. Just choose if you are running 32bit or 64bit
*For CentOS6 32bit
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
*For CentOS6 64bit
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
And then also add this
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
And then install the libmcrypt
# yum --enablerepo=remi,remi-test install libmcrypt libmcrypt-devel
I would prefer this way since I dont want to compile the library manually and since I would also like to install the latest MySQL version which you can also install using the command below
# yum --enablerepo=remi,remi-test install mysql mysql-server