fatal error: common_define.h: No such file or directory

/modules -I src/http/v2 -I /usr/local/include \
	-o objs/src/http/modules/ngx_http_upstream_zone_module.o \
	src/http/modules/ngx_http_upstream_zone_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"' -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/include \
	-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  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I /usr/local/include \
	-o objs/addon/src/ngx_http_fastdfs_module.o \
	/data/installpack/fastdfs-nginx-module-1.20/src/ngx_http_fastdfs_module.c
In file included from /data/installpack/fastdfs-nginx-module-1.20/src/common.c:26:0,
                 from /data/installpack/fastdfs-nginx-module-1.20/src/ngx_http_fastdfs_module.c:6:
/usr/include/fastdfs/fdfs_define.h:15:27: fatal error: common_define.h: No such file or directory
 #include "common_define.h"
                           ^
compilation terminated.
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory `/data/installpack/nginx-1.15.9'
make: *** [build] Error 2
[root@izs6wckjjll74cz nginx-1.15.9]# 

修改: fastdfs-nginx-module-1.20/src/config

这里其实是缺少依赖,在fastdfs老版本的安装中,部分人的解决方法是,做的软链接。

现在新的版本中,都是修改此两处。

ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"

 

你可能感兴趣的:(fatal error: common_define.h: No such file or directory)