nginx安装过程中,经常会有各种错误;
具体安装步骤这里不做说明,网上一搜大把;
主要分析安装过程中遇到的问题
在make编译的时候,若报如下错误:
cc1: warnings being treated as errors
/home/mongo/gridfs-nginx-plugin/mongo-c-driver/src/bson.c: In function ‘bson_ensure_space’:
/home/mongo/gridfs-nginx-plugin/mongo-c-driver/src/bson.c:632: warning: comparison between signed and unsigned
make[1]: *** [objs/addon/src/bson.o] Error 1
make[1]: Leaving directory `/home/mongo/nginx-1.7.9'
make: *** [build] Error 2
在objs/Makefile中将 -Werror 删除,对于warnings忽略
然后再执行make && make install 安装
问题搞定;