Nginx-gridfs compiling #error must have a 64bit int type in Mac -
Nginx-gridfs compiling #error must have a 64bit int type in Mac -
running 10.7.2 follow guide configure append cflags=-wno-error bypass error, got stuck at
in file included /usr/local/src/nginx-gridfs/mongo-c-driver/src/bson.h:24, /usr/local/src/nginx-gridfs/mongo-c-driver/src/mongo.h:24, /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 64bit int type make[1]: *** [objs/addon/nginx-gridfs/ngx_http_gridfs_module.o] error 1 make: *** [build] error 2
any idea?
i have had same problem when compiling windows. need ensure have typedef int64_t , uint64_t.
in order address needed ensure mongo_use__int64 defined.
for mac have unistd.h available - ensure define mongo_have_unistd
nginx gridfs
Comments
Post a Comment