编译php的时候,报configure: error: mcrypt.h not found. Please reinstall libmcrypt.错误的解决办法


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM