LNMP環境搭建時安裝PHP編譯報錯:make: *** No targets specified and no makefile found. Stop.


猜測是少 了點什么東西,未果,繼續網上尋找解決方法

無意中發現執行上一個命令./configure時末尾有報錯,粗心未發現:

configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

解決方法:

yum -y install curl-devel

重新執行./configure命令編譯,報錯:

configure: error: jpeglib.h not found.

解決方法:

yum -y install libjpeg-devel

再執行./configure,繼續報錯:
configure: error: png.h not found.

解決方法:

yum install libpng

yum install libpng-devel

再執行./configure,還報錯:

configure: error: freetype.h not found.

解決方法:

yum install freetype-devel

版本:centos 7.7+PHP 5.3.29

小白有點懵,想不明白為什么會少了幾個依賴,記錄一下問題


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM