fastdfs-nginx-module
fastdfs-nginx-module copied to clipboard
nginx 1.8 1.10 .12 都不能通过编译 fastdfs-nginx-module-1.20
cc1: warnings being treated as errors /usr/local/fastdfs/fastdfs-nginx-module-1.20/src//common.c:1366: error: implicit declaration of function ‘storage_download_file_ex1’ make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory `/usr/local/nginx/nginx-1.10.3' make: *** [build] Error 2
需要先编译和安装FDFS client library。
FDFS client library是指? libfastcommon与fastdfs已经安装成功的
同问
我在公司用的nginx-1.10.0可以,在自己的电脑上用nginx-1.12.2和nginx-1.10.3都是这个问题,为什么呢,你们解决了吗?
/usr/local/include/fastdfs/storage_client1.h:524: error: expected ‘)’ before ‘*’ token In file included from /data/fastDFS/fastdfs-nginx-module-master/src/common.c:31, from /data/fastDFS/fastdfs-nginx-module-master/src/ngx_http_fastdfs_module.c:6: /usr/local/include/fastdfs/trunk_shared.h:18:20: error: base64.h: No such file or directory In file included from /data/fastDFS/fastdfs-nginx-module-master/src/ngx_http_fastdfs_module.c:6: /data/fastDFS/fastdfs-nginx-module-master/src/common.c: In function ‘fdfs_http_request_handler’: /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: ‘ConnectionInfo’ undeclared (first use in this function) /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: (Each undeclared identifier is reported only once /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: for each function it appears in.) /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1349: error: expected ‘;’ before ‘storage_server’ /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1353: error: ‘storage_server’ undeclared (first use in this function) cc1: warnings being treated as errors /data/fastDFS/fastdfs-nginx-module-master/src/common.c:1366: error: implicit declaration of function ‘storage_download_file_ex1’ make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1 make[1]: Leaving directory `/data/fastDFS/nginx-1.14.2' make: *** [build] Error 2
找不到FDFS客户端库?我发现找不到/usr/include/fastcommon/目录下所有以.h结尾的文件,全部复制过去就好了。具体原因不清楚。 cp -a /usr/include/fastcommon/* /usr/include/fastdfs/
楼上6了
楼上的方法,我还是不成功,难受