PHP configure: error: mcrypt.h not found. Please reinstall libmcrypt

1 download libmcrypt

wget http://jaist.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz

2 exact

tar -zxvf libmcrypt-2.5.8.tar.gz 

3 config compile parameter

cd libmcrypt-2.5.8
./configure

4 compile and install

make && make install