CentOS7 安装 FastDFS 报错。fdfs_define.h:15:27: fatal error: common_define.h: No such file or directory。

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

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lyfGeek

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值