运行10.7.2按照configure than append CFLAGS=-Wno-error的指导绕过错误,然后我就被卡住了
In file included from /usr/local/src/nginx-gridfs/mongo-c-driver/src/bson.h:24,
from /usr/local/src/nginx-gridfs/mongo-c-driver/src/mongo.h:24,
from /usr/local/src/nginx-gridfs/ngx_http_gridfs_module.c:43:
/usr/local/src/nginx-gridfs/mongo-c-driver/src/platform.h:50:2: error: #error must have a 64bit int type
make[1]: *** [objs/addon/nginx-gridfs/ngx_http_gridfs_module.o] Error 1
make: *** [build] Error 2有什么想法吗?
发布于 2012-10-15 17:36:26
在为Windows编译时,我也遇到了同样的问题。你需要确保你有一个int64_t和uint64_t的类型定义。
为了解决这个问题,我需要确保定义了MONGO_USE__INT64。
对于Mac,你几乎肯定有可用的MONGO_HAVE_UNISTD -所以要确保你定义了unistd.h
https://stackoverflow.com/questions/9101822
复制相似问题