遇到的问题记录一下:
1.配置 --with-http_image_filter_module 时提示 requires the gd library.
sudo apt-get install libgd2-xpm libgd2-xpm-dev
2.配置 --with-http_xslt_module 时提示 requires the libxml2/libxslt libraries.
sudo apt-get install libxml2 libxml2-dev
sudo apt-get install libxslt1.1 libxslt1-dev
3.配置 --with-http_geoip_module 时提示 the GeoIP module requires the GeoIP library.
sudo apt-get install geoip-database libgeoip-dev
4.make 时出错,如
make[1]: Entering directory `/root/nginx-1.0.9'
cd /server/openssl \
&& make clean \
&& ./config --prefix=/server/openssl/openssl no-shared no-threads \
&& make \
&& make install
make[2]: Entering directory `/server/openssl'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/server/openssl'
make[1]: *** [/server/openssl/openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/root/nginx-1.0.9'
make: *** [build] Error 2
我们需要下载 openssl ,加压缩至一个目录,然后配置时指定此目录的位置。
wget http://www.openssl.org/source/openssl-1.0.0e.tar.gz
tar zxvf openssl-1.0.0e.tar.gz
configure ---with-openssl=/home/rainyjune/src/openssl-1.0.0e 其他配置....