CentOS7 安装 FastDFS 报错。fdfs_define.h:15:27: fatal error: common_define.h: No such file or directory。
from /usr/local/fastdfs-nginx-module-1.22/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
- 修改插件配置文件。
vim /usr/local/fastdfs-nginx-module-1.22/src/config
原文件配置。
ngx_module_incs="/usr/local/include"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon"
修改为
ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon"
看看这里有什么。
[root@192 ~]# ls /usr/include/fastdfs
client_func.h fdfs_define.h fdfs_shared_func.h storage_client.h tracker_types.h
client_global.h fdfs_global.h mime_file_parser.h tracker_client.h trunk_shared.h
fdfs_client.h fdfs_http_shared.h storage_client1.h tracker_proto.h
[root@192 ~]# ls /usr/include/fastcommon/
avl_tree.h fast_mblock.h ioevent.h sched_thread.h
base64.h fast_mpool.h ioevent_loop.h server_id_func.h
buffered_file_writer.h fast_task_queue.h json_parser.h shared_buffer.h
chain.h fast_timer.h local_ip_func.h shared_func.h
char_converter.h fc_list.h logger.h skiplist_common.h
char_convert_loader.h fc_memory.h md5.h skiplist.h
common_blocked_queue.h fc_queue.h multi_skiplist.h skiplist_set.h
```common_define.h```flat_skiplist.h multi_socket_client.h sockopt.h
connection_pool.h hash.h _os_define.h system_info.h
fast_allocator.h http_func.h php7_ext_wrapper.h thread_pool.h
fast_blocked_queue.h id_generator.h process_ctrl.h uniq_skiplist.h
fast_buffer.h ini_file_reader.h pthread_func.h