php安裝,啟動報錯,
阿新 • • 發佈:2018-05-02
php 安裝報錯 安裝報錯:
錯誤1:
configure: error: xml2-config not found. Please check your libxml2 installation.
解決辦法:
yum install -y libxml2-devel
錯誤2:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解決辦法:
yum install -y bzip2-devel
錯誤3: configure: error: jpeglib.h not found. 解決辦法: yum install -y libjpeg-turbo-devel
錯誤4:
configure: error: png.h not found.
解決辦法:
yum install -y libpng libpng-devel
錯誤5:
configure: error: freetype-config not found.
解決辦法:
yum install -y freetype freetype-devel
錯誤6: configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解決辦法: yum install -y epel-release yum install -y libmcrypt libmcrypt-devel
錯誤7
configure: error: xml2-config not found. Please check your libxml2 installation.
解決辦法
yum install -y libxml2 libxml2-devel
錯誤8
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解決辦法
yum install curl curl-devel
nginx相關問題
錯誤1 Restarting nginx (via systemctl): Warning: nginx.service changed on disk. Run ‘systemctl daemon-reload‘ to reload units. 解決辦法: 我們可以先用systemctl daemon-reload 再systemctl restart nginx 即可。其他服務出現類似的情況,也可以使用systemctl daemon-reload來解決。
php安裝,啟動報錯,