make -f objs/Makefile make[1]: Entering directory `/data/source/nginx' cd /usr/local/ufo/lib/pcre \ && if [ -f Makefile ]; then make distclean; fi \ && CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \ ./configure --disable-shared /bin/sh: ./configure: No such file or directory make[1]: *** [/usr/local/services/lib/pcre/Makefile] Error 127 make[1]: Leaving directory `/data/source/nginx-0.7.61' make: *** [build] Error 2
主要原因是:nginx编译所使用的pcre必须是源码包,--with-pcre=PATH是源码地址
解决办法:重新下载一个pcre包然后解压不用安装,将PATH指向该地址就ok