c - Nginx 模块用于从 MongoDB 的 Make 错误中提供文件

标签 c mongodb nginx

我正在尝试从 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

我应该如何解决该错误......

最佳答案

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

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

git submodule update --init

关于c - Nginx 模块用于从 MongoDB 的 Make 错误中提供文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14321931/

相关文章:

C宏为字符串添加前缀和后缀?

c - 存储指向 strsep() 返回值的指针

java - 应用程序调用了副本集中的哪个 Mongo 实例?

javascript - 当另一个用户已经注册了相同的电子邮件时,如何在 Put(更新)方法中进行电子邮件重复检查?

ssl - 是否可以在没有 ssl 的情况下在 NGINX 端口 443 上运行 HTTP/2?

nginx - Docker自动更新Nginx Web服务器容器的主机文件

c - 在 C 中遍历二维数组

c - Linux 上的 Eclipse Neon : no console for C/C++ programs

javascript - 使用Mongoose关闭连接池

node.js - 如何使用 nginx 禁用子域上的域代理重定向?