我正在尝试从github运行nginx-gridfs以将mongodb与nginx连接。 我遵循了https://github.com/mdirolf/nginx-gridfs自述文件中显示的确切过程。当我使用下面的语句进行配置时
./configure --add-module=/home/yogesh/nginx-gridfs-master --prefix=/usr/local/nginx
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ md5: using system crypto library
+ sha1: using system crypto library
+ using system zlib library
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp
现在,当我按MAKE制作文件时,我收到以下错误
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g --std=c99 -Isrc -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
src/http/modules/ngx_http_upstream_keepalive_module.c
make[1]: *** No rule to make target `/home/yogesh/nginx-gridfs-master/mongo-c-driver/src/*.h', needed by `objs/addon/nginx-gridfs-master/ngx_http_gridfs_module.o'. Stop.
make[1]: Leaving directory `/home/yogesh/nginx-1.2.6'
make: *** [build] Error 2
我该怎么做才能解决错误.....
答案 0 :(得分:2)
nginx-gridfs有子模块(mongo-c-driver)。
在nginx-gridfs目录中执行以下命令后,您可能会尝试从./configure重新启动。
git submodule update --init