猜測是少 了點什么東西,未果,繼續網上尋找解決方法
無意中發現執行上一個命令./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
小白有點懵,想不明白為什么會少了幾個依賴,記錄一下問題
