configure: error: mcrypt.h not found. Please reinstall libmcrypt. 
今天在编译php的时候,出现如下错误php安装出错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.,意思是,没有查找到mcrytp.h,需要安装libcrytp,在下面的地址下载libmarypt:
wget  ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
安装: 
66 tar -zxvf libmcrypt-2.5.7.tar.gz 
67 cd libmcrypt-2.5.7 
68 mkdir -p /usr/local/libmcrytp 
69 ./configure prefix=/usr/local/libmcrytp/   #默认也可以
70 make
71 make install 
然后再安装PHP
实际上,我有用yum安装过这个选项依赖包,可是在centos6.0上面,其只是安装了所用的依赖库,并没有这个.h文件,没办法,只能编译安装,然后指定路径。
--with-mcrypt=/usr/local/libmcrypt
,忘了有没有用 rpm -ql 来找了,不过当时libmcrypt.so...的目录下没有这个文件。