ubuntu下安装php出现的错误提示及解决
#sudo apt-get install build-essential
不然会出现 checking for C compiler default output file name… configure: error: C compiler cannot create executables
#sudo apt-get install zlib1g-dev
不然 会出现 checking for zlib location… not found
checking whether to enable mod_deflate… configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
error: xml2-config not found. Please check your libxml2 installation. 出现这个时 sudo apt-get install libxml2-dev
error: Cannot find OpenSSL’s
error: Please reinstall the libcurl distribution -easy.h should be in
checking for db4 major version…configure:error:Header contains different version 出现这个时 sudo apt-get install libdb4.6-dev
error: libjpeg.(a|so) not found. 出现这个时 sudo apt-get install libjpeg62-dev
error: libpng.(a|so) not found. 出现这个时 sudo apt-get install libpng12-dev
error: freetype.h not found. 出现这个时 sudo apt-get install libfreetype6-dev
error: Unable to find gd.h anywhere 出现这个时 sudo apt-get install libgd2-xpm libgd-tools libgd2-xpm-dev
Tags: php, ubuntu, 安装错误