Makefile:886:objs/src/http/ngx_http_script.o] 错误 1

今天在一台新的服务器上 准备安装nginx 一开始装的扩展什么的都很顺利 可是make的时候出了问题 我肯定全部须要的扩展都已经安装好了,出现问题以下:html

haiqi@haiqi-B85M-D2V:/nginx-1.10.3$ makenginx

cc1: all warnings being treated as errors
objs/Makefile:458: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
make[1]: * [objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/nginx-1.10.3'
Makefile:8: recipe for target 'build' failed服务器

make: * [build] Error 2ui

折腾了一上午以后 终于在另外一篇文章中找到解决方法 http://www.aiuxian.com/articl...htm

将对应的makefile文件夹中(如本文中在 /nginx-1.10.3/objs/Makefile) 找到 -Werrori 并去掉 在从新make便可ip

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

相关文章
相关标签/搜索