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去掉就可以

你可能感兴趣的:(Nginx,Nginx,Ubuntu)