錯(cuò)誤一
configure: error: xml2-config not found. Please check your libxml2 installation.
而我已經(jīng)安裝過了libxml2,但是還是有這個(gè)提示:
解決辦法:
sudo apt-get install libxml2-dev
錯(cuò)誤二
configure: error: Please reinstall the BZip2 distribution
而我也已經(jīng)安裝了bzip2捌归,網(wǎng)上找到得解決方案都是需要安裝bzip2-dev,可是11.10里面沒有這個(gè)庫琉兜。
解決辦法:在網(wǎng)上找到bzip2-1.0.5.tar.gz攀操,解壓院仿,直接make ,sudo make install.(我使用的該源來自于http://ishare.iask.sina.com.cn/f/9769001.html
)
錯(cuò)誤三
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
解決辦法:
sudo apt-get install libcurl4-gnutls-dev
錯(cuò)誤四
configure: error: jpeglib.h not found.
解決辦法:
sudo apt-get install libjpeg-dev
錯(cuò)誤五
configure: error: png.h not found.
解決辦法:
sudo apt-get install libpng-dev
錯(cuò)誤六
configure: error: libXpm.(a|so) not found.
解決辦法:
sudo apt-get install libxpm-dev
錯(cuò)誤七
configure: error: freetype.h not found.
解決辦法:
sudo apt-get install libfreetype6-dev
錯(cuò)誤八
configure: error: Your t1lib distribution is not installed correctly. Please reinstall it.
解決辦法:
sudo apt-get install libt1-dev
錯(cuò)誤九
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解決辦法:
sudo apt-get install libmcrypt-dev
錯(cuò)誤十
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
解決辦法:
sudo apt-get install libmysql++-dev
錯(cuò)誤十一
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
解決辦法:
sudo apt-get install libxslt1-dev
可見PHP源碼安裝之前需要先安裝這些依賴,詳細(xì)可見http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=231159
如上錯(cuò)誤都解決之后速和,再次./config….
沒有錯(cuò)誤之后歹垫,
make
sudo make install
「轉(zhuǎn)」https://blog.csdn.net/white__cat/article/details/28907535