Nginx 1.0.9 在 Ubuntu 11.10 Server 上的安装

来源:互联网 发布:淘宝不上传身份证清关, 编辑:程序博客网 时间:2024/06/16 08:43

遇到的问题记录一下:


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 installmake[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 2make[1]: Leaving directory `/root/nginx-1.0.9'make: *** [build] Error 2


我们需要下载 openssl ,加压缩至一个目录,然后配置时指定此目录的位置。

wget http://www.openssl.org/source/openssl-1.0.0e.tar.gztar zxvf openssl-1.0.0e.tar.gz
configure ---with-openssl=/home/rainyjune/src/openssl-1.0.0e 其他配置....


原创粉丝点击