nigx pcre openssl zlib安装配置

1)zlib安装

下载:http://www.zlib.net

./configure

make

make install

2)openssl安装

下载:http://openssl.org/source/openssl-1.0.0a.tar.gz

./config --prefix=/usr/local/ssl-1.0.0 shared zlib-dynamic enable-camellia

make

make install

3)pcre安装

下载ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-  8.02.tar.gz 

./configure --prefix=/usr/local/pcre --enable-utf8 --enable-unicode-properties 

make

make install

将/usr/local/pcre/lib下面的libpcre.a,libpcre.la和include/pcre.h复制到/usr/local/pcre目录下面,并建立.libs,并把刚才的3个文件也复制进去

4)nginx安装

下载http://www.nginx.org/ 

./configure --with-openssl=/usr/local/ssl-1.0.0 --with-pcre=/usr/local/pcre/ --with-http_stub_status_module

make

make install

如果出现异常:

make -f objs/Makefile
                make[1]: Entering directory `/usr/local/nginx-1.0.10'
                cd /usr/local/webserver/pcre \
                        && if [ -f Makefile ]; then make distclean; fi \
                        && CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
                        ./configure --disable-shared
                /bin/sh: line 2: ./configure: No such file or directory
                make[1]: *** [/usr/local/webserver/pcre/Makefile] Error 127
                make[1]: Leaving directory `/usr/local/nginx-1.0.10'
                make: *** [build] Error 2


则进入objs目录,修改下面的Makefile,找到configure --disable-shared,去掉即可

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值