0

我正在尝试从 github 运行 nginx-gridfs 以将 mongodb 与 nginx 连接。我遵循了https://github.com/mdirolf/nginx-gridfs README 文件中所示的确切过程。当我使用以下语句进行配置时

./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

我应该怎么做才能解决这个错误......

4

1 回答 1

2

nginx-gridfs 有子模块(mongo-c-driver)。

在 nginx-gridfs 目录中执行以下命令后,您可以尝试从 ./configure 重新启动。

git子模块更新--init
于 2013-01-14T16:18:48.253 回答