Mcrypt. h not found. Please reinstall libmcrypt "solution
Libmcrypt-devel cannot be installed on CentOS sources. For copyright reasons, there is no package containing mcrypt.
There are two solutions: one is to use the third-party source, which can also be installed using yum, which is simple and convenient. The disadvantage is that the third-party source is unreliable.
Solution 1
1. Install a third-party yum Source
Wget http://www.atomicorp.com/installers/atomic
Sh./atomic
2. Use the yum command to install
Yum install php-mcrypt libmcrypt-devel
Solution 2,
Libmcrypt must be installed before using php mcrypt.
Libmcrypt source code installation method:
Cd/usr/local/src
Wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz
Tar-zxvf libmcrypt-2.5.8.tar.gz
Cd/usr/local/src/libmcrypt-2.5.8
./Configure -- prefix =/usr/local
Make
Make install