执行完make以后报错

make[1]: *** [objs/Makefile:445: objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/app/nginx-1.9.9'
make: *** [Makefile:8: build] Error 2

解决办法

找到对应的Maakefile文件(我的在 /nginx/objs/Makefile),将gcc参数中的​​-Werror​​去掉 再重新make即可

make[1]: *** [objs/Makefile:445: objs/src/core/ngx_murmurhash.o] Error_ubuntu


错误原因

查了-Werrori意思之后 发现原来它要求GCC将所有的警告当成错误进行处理 所有导致错误输出 并不能进行下一步

相关异常:Ubuntu18.04编译Nginx报错objs/Makefile:440: recipe for target ‘objs/src/core/ngx_murmurhash.o’ failed