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

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

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

Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
---------------------
原文:https://blog.csdn.net/u010889616/article/details/82867091

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2021-12-07
  • 2021-12-27
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案