nginx 源码编译安装
准备工作:首先安装openssl
pcre
zlib
然后configure nginx
如下:
./configure–prefix=/usr/local/nginx –with-pcre=/usr/local/pcre-8.10
make
报错:
cd /usr/local/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: *** Error 127
make: Leaving directory `/usr/local/src/nginx-0.8.54′
make: *** Error 2
重新configure
./configure–prefix=/usr/local/nginx –with-pcre=/root/desktop/pcre-8.10
其中/root/desktop/pcre-8.10为pcre的源代码目录
make & make install 顺利通过
页:
[1]