安装nginx make install 报错usrincludefastdfsfdfs

it2022-05-05  174

报错如下

 

1,编辑config文件

vim /software/fastdfspackage/fastdfs-nginx-module-1.20/src/config

原始文件

ngx_addon_name=ngx_http_fastdfs_module

if test -n "${ngx_module_link}"; then     ngx_module_type=HTTP     ngx_module_name=$ngx_addon_name     ngx_module_incs="/usr/local/include"     ngx_module_libs="-lfastcommon -lfdfsclient"     ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c"     ngx_module_deps=     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"     . auto/module else     HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"     NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"     CORE_INCS="$CORE_INCS /usr/local/include"     CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient"     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'" fi

编辑后的文件

ngx_addon_name=ngx_http_fastdfs_module

if test -n "${ngx_module_link}"; then     ngx_module_type=HTTP     ngx_module_name=$ngx_addon_name     ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/"     ngx_module_libs="-lfastcommon -lfdfsclient"     ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c"     ngx_module_deps=     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"     . auto/module else     HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"     NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"     CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"     CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient"     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'" fi

2,重新配置

./configure --add-module=/usr/local/src/fastdfs-nginx-module-1.20/src/

make && make install

验证是否成功


最新回复(0)