linux 安装nginx cc1: all warnings being treated as errors解决办法

进入nginx安装文件夹下的objs里面有个Makefile


vim Makefile进去编辑看到

CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g

后的 -Werror -g 去掉 变成

CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused

保存退出 重新make 即可

你可能感兴趣的:(linux 安装nginx cc1: all warnings being treated as errors解决办法)