设为首页收藏本站

LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区!

 找回密码
 注册

QQ登录

只需一步,快速开始

#公告#抱歉,网站将关闭,不再开放。由于PC时代已远逝 。在这个后移动互联网时代,我们继续携手前行,保持对技术的热情。共同构建linuxtone知识星球欢迎加入,一起讨论技术、招聘人才、分享资源。请新老linuxtone人 扫码移步到 知识星球:linuxtone

学习是一种信仰!分享是一种快乐!能力= 心态 * 沟通 * 知识 (你的每一天需要正能量!)

 网站的发展需要你贡献一份力量!希望你能每天坚持看贴1小时,并回答网友的问题!祝你在浏览论坛的过程中取得进步!谢谢!linuxtone加油!大家加油! 友情提示: 你今天学习了吗?你今天进步了吗?少一点抱怨!多一点进步!Life is short ! Why not linuxtone ?  

网站的发展、感谢每位坛友的努力!

查看: 14856|回复: 5

关于fastdfs的nginx模块问题 [复制链接]

Rank: 8Rank: 8

签到
107
注册时间
2013-5-31
最后登录
2015-5-7
在线时间
43 小时
阅读权限
90
积分
11568
帖子
7
主题
1
精华
0
UID
38456
发表于 2013-9-25 17:51:42 |显示全部楼层
/tmp/fastdfs-nginx-module/src/common.c:21:25: error: fdfs_define.h: No such file or directory
/tmp/fastdfs-nginx-module/src/common.c:24:25: error: fdfs_global.h: No such file or directory
/tmp/fastdfs-nginx-module/src/common.c:27:30: error: fdfs_http_shared.h: No such file or directory
/tmp/fastdfs-nginx-module/src/common.c:28:25: error: fdfs_client.h: No such file or directory
/tmp/fastdfs-nginx-module/src/common.c:30:30: error: fdfs_shared_func.h: No such file or directory
/tmp/fastdfs-nginx-module/src/common.c:31:26: error: trunk_shared.h: No such file or directory
In file included from /tmp/fastdfs-nginx-module/src/common.c:32,
                 from /tmp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/tmp/fastdfs-nginx-module/src/common.h:13:27: error: tracker_types.h: No such file or directory
In file included from /tmp/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/tmp/fastdfs-nginx-module/src/common.c:37: error: ‘FDFS_STORAGE_SERVER_DEF_PORT’ undeclared here (not in a function)
/tmp/fastdfs-nginx-module/src/common.c:41: error: ‘FDFS_GROUP_NAME_MAX_LEN’ undeclared here (not in a function)
/tmp/fastdfs-nginx-module/src/common.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_http_params’
cc1: warnings being treated as errors
/tmp/fastdfs-nginx-module/src/common.c: In function ‘fdfs_mod_init’:
/tmp/fastdfs-nginx-module/src/common.c:63: warning: implicit declaration of function ‘trunk_shared_init’
/tmp/fastdfs-nginx-module/src/common.c:75: warning: implicit declaration of function ‘storage_load_paths_from_conf_file’
/tmp/fastdfs-nginx-module/src/common.c:80: error: ‘g_fdfs_connect_timeout’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:80: error: (Each undeclared identifier is reported only once
/tmp/fastdfs-nginx-module/src/common.c:80: error: for each function it appears in.)
/tmp/fastdfs-nginx-module/src/common.c:87: error: ‘g_fdfs_network_timeout’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:129: warning: implicit declaration of function ‘fdfs_http_params_load’
/tmp/fastdfs-nginx-module/src/common.c:129: error: ‘g_http_params’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:160: warning: implicit declaration of function ‘fdfs_load_tracker_group_ex’
/tmp/fastdfs-nginx-module/src/common.c:160: error: ‘g_tracker_group’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:172: warning: implicit declaration of function ‘fdfs_load_storage_ids_from_file’
/tmp/fastdfs-nginx-module/src/common.c:193: error: ‘g_fdfs_path_count’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:195: error: ‘g_fdfs_store_paths’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:198: error: ‘g_fdfs_base_path’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:198: error: ‘g_storage_id_count’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c: In function ‘fdfs_http_request_handler’:
/tmp/fastdfs-nginx-module/src/common.c:376: error: ‘FDFSFileInfo’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:376: error: expected ‘;’ before ‘file_info’
/tmp/fastdfs-nginx-module/src/common.c:380: error: ‘FDFSTrunkFullInfo’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:380: error: expected ‘;’ before ‘trunkInfo’
/tmp/fastdfs-nginx-module/src/common.c:381: error: ‘FDFSTrunkHeader’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:381: error: expected ‘;’ before ‘trunkHeader’
/tmp/fastdfs-nginx-module/src/common.c:473: error: ‘g_http_params’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:479: warning: implicit declaration of function ‘fdfs_http_get_parameter’
/tmp/fastdfs-nginx-module/src/common.c:479: warning: assignment makes pointer from integer without a cast
/tmp/fastdfs-nginx-module/src/common.c:480: warning: assignment makes pointer from integer without a cast
/tmp/fastdfs-nginx-module/src/common.c:491: warning: implicit declaration of function ‘fdfs_http_check_token’
/tmp/fastdfs-nginx-module/src/common.c:527: warning: implicit declaration of function ‘storage_split_filename_ex’
/tmp/fastdfs-nginx-module/src/common.c:534: warning: implicit declaration of function ‘fdfs_check_data_filename’
/tmp/fastdfs-nginx-module/src/common.c:540: warning: implicit declaration of function ‘fdfs_get_file_info_ex1’
/tmp/fastdfs-nginx-module/src/common.c:540: error: ‘file_info’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:575: warning: implicit declaration of function ‘trunk_file_stat_ex’
/tmp/fastdfs-nginx-module/src/common.c:575: error: ‘trunkInfo’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:575: error: ‘trunkHeader’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:585: warning: assignment makes pointer from integer without a cast
/tmp/fastdfs-nginx-module/src/common.c:599: warning: implicit declaration of function ‘IS_TRUNK_FILE_BY_ID’
/tmp/fastdfs-nginx-module/src/common.c:618: error: ‘g_fdfs_store_paths’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:642: warning: assignment makes pointer from integer without a cast
/tmp/fastdfs-nginx-module/src/common.c:727: warning: implicit declaration of function ‘fdfs_http_get_content_type_by_extname’
/tmp/fastdfs-nginx-module/src/common.c:809: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:809: error: expected ‘;’ before ‘storage_server’
/tmp/fastdfs-nginx-module/src/common.c:813: error: ‘storage_server’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:821: warning: implicit declaration of function ‘storage_download_file_ex1’
/tmp/fastdfs-nginx-module/src/common.c:850: warning: implicit declaration of function ‘trunk_get_full_filename’
/tmp/fastdfs-nginx-module/src/common.c:853: warning: implicit declaration of function ‘TRUNK_FILE_START_OFFSET’
/tmp/fastdfs-nginx-module/src/common.c: In function ‘fdfs_get_params_from_tracker’:
/tmp/fastdfs-nginx-module/src/common.c:957: warning: implicit declaration of function ‘fdfs_get_ini_context_from_tracker’
/tmp/fastdfs-nginx-module/src/common.c:957: error: ‘g_tracker_group’ undeclared (first use in this function)
/tmp/fastdfs-nginx-module/src/common.c:973: warning: implicit declaration of function ‘fdfs_get_storage_ids_from_tracker_group’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory `/tmp/nginx-1.4.2'
make: *** [build] Error 2











以上为报错信息,求助大神们。。这个问题怎么解决,在压缩包内的/scr/config文件如下,路径修改好了,最后一个路径不知道是什么意思






ngx_addon_name=ngx_http_fastdfs_module
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/FastDFS /usr/local/FastDFS/include/fastcommon/"
CORE_LIBS="$CORE_LIBS -L/usr/local/FastDFS/lib -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/usr/local/FastDFS/conf/m
od_fastdfs.conf\"'"
~                     

Rank: 8Rank: 8

注册时间
2013-5-31
最后登录
2015-5-7
在线时间
43 小时
阅读权限
90
积分
11568
帖子
7
主题
1
精华
0
UID
38456
发表于 2013-9-26 14:16:48 |显示全部楼层
,求解答

使用道具 举报

Rank: 4

注册时间
2012-12-3
最后登录
2013-9-26
在线时间
6 小时
阅读权限
50
积分
1572
帖子
4
主题
0
精华
0
UID
36264
发表于 2013-9-26 17:14:39 |显示全部楼层
绝对安装方法不对,再搜索一下安装方法

使用道具 举报

Rank: 3Rank: 3

注册时间
2013-12-26
最后登录
2014-1-6
在线时间
2 小时
阅读权限
30
积分
360
帖子
80
主题
0
精华
0
UID
40702
发表于 2013-12-30 16:29:07 |显示全部楼层
Keycer是一家位于荷兰的基础网络服务提供商,全球IP单一架构,在客户单台服务器,提供任意国家的IP
全能独立IP空间,支持IP访问网站,独立IP更利于SEO,让您选择更专业,海外免备案空间,海外服务器,稳定高速。
新品发布
全球最低价 限量50台供应
每人限购3台
•        6核心CPU
•        12GB 内存
•        2TB硬盘
•        1TB流量
•        256个C段不连续IP
•        大机房质量保障/全球IP

更多请点击: http://www.keycer.org/support/cart/cloud-promotion/&step=0
详情咨询QQ:800066022

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-2
最后登录
2017-2-13
在线时间
54 小时
阅读权限
90
积分
12816
帖子
35
主题
3
精华
0
UID
34481
发表于 2014-5-16 17:29:58 |显示全部楼层
这个需要默认安装Fastdfs ,然后在安装fastdfs_nginx_

使用道具 举报

Rank: 6Rank: 6

注册时间
2009-2-7
最后登录
2016-1-21
在线时间
28 小时
阅读权限
70
积分
7467
帖子
37
主题
8
精华
0
UID
1326
发表于 2014-10-11 15:58:23 |显示全部楼层
也走到这个坑了 5.01的时候貌似没有这个问题

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

IT运维专家网感谢您的支持

合作联系: QQ:67888954/MSN:cnseek@msn.com/mail:netseek@linuxtone.org

Archiver|手机版|感谢所有关心和支持过LinuxTone的朋友们 转载本站内容请注明原作者名及出处 ( 京ICP备08103151 )   |

GMT+8, 2019-1-19 21:01 , Processed in 0.022166 second(s), 14 queries , Apc On.

Powered by Discuz! X2 Licensed

© 2001-2011 Comsenz Inc.

回顶部