PHP 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


========================================================================

如果以上方法仍然不能安装,请参考:

rpm -ivh "http://www.lishiming.net/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm" 

yum install -y libmcrypt-devel 

因为centos6.x 默认的yum源没有libmcrypt-devel 这个包,只能借助第三方yum源。 


心锁无间的博客

你可能感兴趣的:(PHP,error:,not,found.,configure:,mcrypt.h)