|
安装步骤为
tar -zxvf pcre-7.8.tar.gz
cd pcre-7.8/
./configure
make
make install
tar -zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local/zlib
make
make install
tar -zxvf nginx-0.6.38.tar.gz
cd nginx-0.6.38
./configure --prefix=/usr/local/nginx --user=www --group=www --with-pcre=/usr/local/lib --with-zlib=/usr/local/zlib --with-http_stub_status_module --with-http_ssl_module
make时候出错
提示
make -f objs/Makefile
make[1]: Entering directory `/root/software/nginx-0.6.38'
cd /usr/local/lib \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="" \
./configure --disable-shared
/bin/sh: line 2: ./configure: 没有那个文件或目录
make[1]: *** [/usr/local/lib/Makefile] 错误 127
make[1]: Leaving directory `/root/software/nginx-0.6.38'
make: *** [build] 错误 2 |
|