最近在想搭建FastDFS服務器,但是在安裝fastdfs-nginx-module的時候卡主了,一直Ng編譯的時候一直報錯錯誤如下
/java/fastdfs-nginx-module-1.20/src//common.c: In function ‘fdfs_calc_content_length’:
/java/fastdfs-nginx-module-1.20/src//common.c:597:27: error: implicit declaration of function ‘get_current_time_us’; did you mean ‘get_current_dir_name’? [-Werror=implicit-function-declaration]
"%"PRIx64, get_current_time_us());
^~~~~~~~~~~~~~~~~~~
get_current_dir_name
/java/fastdfs-nginx-module-1.20/src//common.c:597:16: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Werror=format=]
"%"PRIx64, get_current_time_us());
^~~ ~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/fastcommon/common_define.h:31,
from /usr/local/include/fastcommon/logger.h:15,
from /java/fastdfs-nginx-module-1.20/src//common.c:21,
from /java/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c:6:
/usr/include/inttypes.h:121:34: note: format string is defined here
# define PRIx64 __PRI64_PREFIX "x"
In file included from /java/fastdfs-nginx-module-1.20/src//ngx_http_fastdfs_module.c:6:
/java/fastdfs-nginx-module-1.20/src//common.c: In function ‘fdfs_http_request_handler’:
/java/fastdfs-nginx-module-1.20/src//common.c:1245:61: error: ‘FDFSHTTPParams’ {aka ‘struct <anonymous>’} has no member named ‘support_multi_range’
搞了一整天,頭都炸了,換了各種版本的Ng和fastdfs-nginx-module,不報這個就是報其他的,沒有一個成功的,只能跟各位大佬求救了。
uj5u.com熱心網友回復:
既然做編譯安裝,把你的編譯環境描述一下uj5u.com熱心網友回復:
可能是你的libfastcommon和fastdfs版本不兼容,都換成最新版本試試轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/67898.html
標籤:Web 開發
