編譯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