码迷,mamicode.com
首页 > 其他好文 > 详细

FastDFS整合Nginx的模块:fastdfs-nginx-module报错:fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录

时间:2019-07-28 15:44:01      阅读:413      评论:0      收藏:0      [点我收藏+]

标签:core   configure   错误   整合   技术   make   def   Fix   nginx   

错误提示:
/usr/include/fastdfs/fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录

技术图片

【解决办法】

  1、编辑fastdfs-nginx-module的配置文件

vim /home/zsd/fast/fastdfs-nginx-module-1.20/src/config

技术图片

  2、将原文修改为上图的两处红框圈出的地方

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

  3、重新编译安装

./configure --prefix=/usr/local/nginx --add-module=/root/fastdfs-nginx-module-master/src    #解压后fastdfs-nginx-module所在的位置
make
make install

  4、查看fastdfs-nginx-module的安装情况

技术图片

 

 

参考:https://blog.csdn.net/weixin_36162966/article/details/91961371

FastDFS整合Nginx的模块:fastdfs-nginx-module报错:fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录

标签:core   configure   错误   整合   技术   make   def   Fix   nginx   

原文地址:https://www.cnblogs.com/116970u/p/11259065.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!