ubuntu 源碼安裝php configure error 解決

原文鏈接:https://www.cnblogs.com/a-flydog/p/9460310.html

1:configure: error: libxml2 not found. Please check your libxml2 installation.

apt install libxml2-dev

2:configure: error: Cannot find OpenSSL's <evp.h>

apt install libssl-dev 

apt install openssl

find / -name libssl.so

ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib

3:configure: error: jpeglib.h not found.

apt install libjpeg-dev

4:configure: error: png.h not found.

apt install libpng-dev

5:configure: error: freetype-config not found

apt install libfreetype6-dev

6:curl version | Cannot find OpenSSL's <evp.h>

apt install libcurl4-openssl-dev pkg-config

7:configure: error: mcrypt.h not found. Please reinstall libmcrypt

apt install libmcrypt-dev

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章