每次在编译安装php时都会出现一些错误,今天记录一下方便以后安装时再出现查询
1、configure: error: Cannot find OpenSSL's <evp.h>
sudo apt-get install libssl-dev
2、configure: error: Please reinstall readline - I cannot find readlin
sudo apt-get install libedit-dev libreadline-dev
3、configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
sudo apt-get install libxslt1-dev
4、php configure: error: png.h not found.
sudo apt-get install libpng12-dev
5、configure: error: freetype-config not found.
sudo apt-get install libfreetype6-dev