运行10.7.2按照指南配置而不是附加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
任何想法?
答案 0 :(得分:1)
编译Windows时遇到了同样的问题。您需要确保为int64_t和uint64_t提供typedef。
为了解决我需要确保定义了 MONGO_USE__INT64 。
对于Mac,您几乎肯定有 unistd.h - 所以请确保您定义 MONGO_HAVE_UNISTD