nginx安装过程,报错处理:make[1]: *** [objs/addon/src/bson.o] Error 1


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 安装

问题搞定;


posted @ 2015-06-18 16:21  IDO老徐  阅读(4988)  评论(0编辑  收藏  举报