基本上是参考张宴的http://blog.s135.com/nginx_php_v5/ 来操作的
但是对方主要是写的在CentOS 和RedHat 的安装方法,在Ubuntu下有很多不同之处.
在Ubuntu9.10 Beta下安装成功
1. 安装php之前 应该先安装php的支持库,能避免后面出现的数个错误.
主要有
2.安装openssl
sudo apt-get install libssl-dev
sudo apt-get install openssl
3.configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
apt-get install libcurl3
apt-get install libcurl4-gnutls-dev
4.
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
5.configure: error: freetype.h not found.
6.checking for termcap functions library… configure: error: No curses/termcap library found
7.安装libpng/libjpeg
apt-get install libjpeg62-dev
8.安装autoconf 不安装的话,memcache等扩展无法编译
9.编译php的时候 configure: error: sasl.h not found!
apt-get install libsasl2-dev