nginx添加upload模块

小飞哥哥 发布于 2017/06/21 11:29
阅读 812
收藏 0

我的nginx已安装成功,安装的脚本如下: 

./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/usr/local/src/pcre-8.40 \
--with-zlib=/usr/local/src/zlib-1.2.11 \
--with-openssl=/usr/local/src/openssl-1.0.1t \
--with-http_stub_status_module \
--with-http_sub_module \
--with-md5=/usr/lib

添加nginx_upload_module-2.0.12时脚本如下: 

./configure --with-http_stub_status_module  --add-module=/usr/local/src/nginx_upload_module-2.0.12

目录都是对的,但是当make的时候就报错了,报错如下: 
 

.0.1t/.openssl/include -I /usr/local/src/zlib-1.2.11 -I objs -I src/http -I src/http/modules \
    -o objs/src/http/modules/ngx_http_stub_status_module.o \
    src/http/modules/ngx_http_stub_status_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.40 -I /usr/local/src/openssl-1.0.1t/.openssl/include -I /usr/local/src/zlib-1.2.11 -I objs -I src/http -I src/http/modules \
    -o objs/addon/nginx_upload_module-2.0.12/ngx_http_upload_module.o \
    /usr/local/src/nginx_upload_module-2.0.12/ngx_http_upload_module.c
/usr/local/src/nginx_upload_module-2.0.12/ngx_http_upload_module.c:14:17: fatal error: md5.h: No such file or directory
 #include <md5.h>

 

加载中
返回顶部
顶部