Nginx 1.0.9 在 Ubuntu 11.10 Server 上的安装

遇到的问题记录一下:


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 其他配置....


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值