Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed

在Ubuntu18.04上安装Ngnix,在编译步骤出现如下错误:

cc1: all warnings being treated as errors
objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/home/wzj/tools/nginx/nginx-1.11.3'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

解决办法
找到对应的Maakefile文件,将gcc参数中的-Werror去掉。

我上面显示的是./objs/Makefile文件,我打开看了下,将第三行的-Werror去掉就可以


--------------------- 
作者:dmfrm 
来源:CSDN 
原文:https://blog.csdn.net/u010889616/article/details/82867091 
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(Linux)