编译nginx出错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译nginx出错相关的知识,希望对你有一定的参考价值。


[[email protected] nginx-1.8.0]# make

make -f objs/Makefile

make[1]: 进入目录“/usr/soft/nginx-1.8.0”

cd /usr/lib/pcre \

&& if [ -f Makefile ]; then make distclean; fi \

&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \

./configure --disable-shared 

/bin/sh:行2: ./configure: 没有那个文件或目录

make[1]: *** [/usr/lib/pcre/Makefile] 错误 127

make[1]: 离开目录“/usr/soft/nginx-1.8.0”

make: *** [build] 错误 2


显示找不到Makefile,

--with-pcre=/usr/lib/pcre 把目录指向到pcre的源目录

以上是关于编译nginx出错的主要内容,如果未能解决你的问题,请参考以下文章

编译nginx出错

取编译参数时遇到的管道重定向问题

源码编译安装lnmp环境

编译cm11出错

ARM (UBOOT)编译出错问题

DataStage Transformer 编译出错