免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6226 | 回复: 13
打印 上一主题 下一主题

[FastDFS] Nginx安装问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-01-17 18:08 |只看该作者 |倒序浏览
  第一次用类linux系统。是ubuntu12.10版本。
在安装配置fastdfs的过程中,fastdfs安装没出问题,配置也正常,但不知道是否安装成功。然后在安装nginx的过程中出现了问题。找了很多资料,都没有解决。个人以为是版本问题导致的,
但完全不知道如何去解决。希望能给点思路。下面是nginx的出错文字

../fastdfs-nginx-module/src/common.c:43:2: 错误: 未知的类型名‘FDFSStorePaths’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_load_groups_store_paths’中:
../fastdfs-nginx-module/src/common.c:123:35: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:125:58: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_mod_init’中:
../fastdfs-nginx-module/src/common.c:338:43: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:339:33: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:343:23: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:383:3: 错误: ‘g_storage_id_count’未声明(在此函数内第一次使用)
../fastdfs-nginx-module/src/common.c:383:3: 附注: 每个未声明的标识符在其出现的函数内只报告一次
../fastdfs-nginx-module/src/common.c:392:48: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:396:38: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:403:16: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_http_request_handler’中:
../fastdfs-nginx-module/src/common.c:556:2: 错误: 未知的类型名‘FDFSStorePaths’
../fastdfs-nginx-module/src/common.c:651:15: 警告: 从不兼容的指针类型赋值 [默认启用]
../fastdfs-nginx-module/src/common.c:684:15: 警告: 从不兼容的指针类型赋值 [默认启用]
../fastdfs-nginx-module/src/common.c:763:35: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:769:34: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:868:17: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:907:14: 错误: ‘FDFSFileInfo’没有名为‘source_id’的成员
../fastdfs-nginx-module/src/common.c:973:11: 警告: 赋值时将整数赋给指针,未作类型转换 [默认启用]
../fastdfs-nginx-module/src/common.c:977:2: 警告: 传递‘fdfs_http_get_content_type_by_extname’的第 3 个参数时将整数赋给指针,未作类型转换 [默认启用]
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
                 from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 需要类型‘char *’,但实参的类型为‘int’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:977:2: 警告: 传递‘fdfs_http_get_content_type_by_extname’的第 4 个参数时将指针赋给整数,未作类型转换 [默认启用]
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
                 from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 需要类型‘int’,但实参的类型为‘char *’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:977:2: 错误: 提供给函数‘fdfs_http_get_content_type_by_extname’的实参太多
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
                 from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 在此声明
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:1092:3: 错误: 未知的类型名‘ConnectionInfo’
../fastdfs-nginx-module/src/common.c:1096:24: 错误: 在非结构或联合中请求成员‘ip_addr’
../fastdfs-nginx-module/src/common.c:1097:17: 错误: 在非结构或联合中请求成员‘port’
../fastdfs-nginx-module/src/common.c:1098:17: 错误: 在非结构或联合中请求成员‘sock’
../fastdfs-nginx-module/src/common.c:1104:3: 警告: 传递‘storage_download_file_ex1’的第 2 个参数时在不兼容的指针类型间转换 [默认启用]
In file included from /usr/local/include/fastdfs/fdfs_client.h:17:0,
                 from ../fastdfs-nginx-module/src/common.c:28,
                 from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/storage_client1.h:274:5: 附注: 需要类型‘struct TrackerServerInfo *’,但实参的类型为‘int *’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:1143:16: 错误: 在非结构或联合中请求成员‘paths’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
make[1]:正在离开目录 `/root/nginx-1.2.0'
make: *** [build] 错误 2
root@koral-VirtualBox:~/nginx-1.2.0# cd /usr/local/nginx/sbin
bash: cd: /usr/local/nginx/sbin: 没有那个文件或目录
root@koral-VirtualBox:~/nginx-1.2.0# cd /usr/local
root@koral-VirtualBox:/usr/local# cd
root@koral-VirtualBox:~#  gcc -version
gcc: 错误: unrecognized command line option ‘-version’
gcc: 致命错误: 没有输入文件
编译中断。
root@koral-VirtualBox:~# gcc -verdion
gcc: 错误: unrecognized command line option ‘-verdion’
gcc: 致命错误: 没有输入文件
编译中断。
root@koral-VirtualBox:~# gcc -version
gcc: 错误: unrecognized command line option ‘-version’
gcc: 致命错误: 没有输入文件
编译中断。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2014-01-17 18:12 |只看该作者
需要下载安装新版本的FDFS server(client library)。

论坛徽章:
0
3 [报告]
发表于 2014-01-17 22:57 |只看该作者
回复 2# happy_fish100
鱼大,用5.00版本的可以吗?我用4.08版本装就会有这个问题

   

论坛徽章:
0
4 [报告]
发表于 2014-01-20 09:09 |只看该作者
fish兄,能给我个版本搭配吗。比如说fastdfs server用什么版本,client library用什么版本,libevent用什么版本,nginx用什么版本.另外,安装其他版本搭建,原来安装的这些东西要卸载吗?如果要卸载,怎么卸载啊。我找了删除包的命令,结果说找不到这样的包。问题这么多,实在不好意思哦。

论坛徽章:
0
5 [报告]
发表于 2014-01-20 16:12 |只看该作者
换了v4.06版本,现在出现这个错误。去看代码看不懂,我怀疑是路径错了。因为在安装fastdfs的时候,make.sh中的一处路径问题,才让安装成功的。所以可能导致这个问题。       
-lpthread -ldl -lcrypt -L/usr/local/lib -lfastcommon -lfdfsclient -lpcre -lssl -lcrypto -ldl -lz
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_load_groups_store_paths’中:
/root/fastdfs-nginx-module/src/common.c:124:对‘storage_load_paths_from_conf_file_ex’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/root/fastdfs-nginx-module/src/common.c:293:对‘fdfs_load_storage_ids_from_file’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_get_params_from_tracker’中:
/root/fastdfs-nginx-module/src/common.c:1276:对‘fdfs_get_storage_ids_from_tracker_group’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/root/fastdfs-nginx-module/src/common.c:347:对‘g_storage_id_count’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_http_request_handler’中:
/root/fastdfs-nginx-module/src/common.c:754:对‘storage_split_filename_no_check’未定义的引用
/root/fastdfs-nginx-module/src/common.c:808:对‘trunk_file_stat_func_ex’未定义的引用
/root/fastdfs-nginx-module/src/common.c:973:对‘fdfs_http_get_file_extension’未定义的引用
/root/fastdfs-nginx-module/src/common.c:1133:对‘trunk_get_full_filename_ex’未定义的引用
collect2: 错误: ld 返回 1
make[1]: *** [objs/nginx] 错误 1
make[1]:正在离开目录 `/root/tengine-1.5.2'
make: *** [build] 错误 2

论坛徽章:
0
6 [报告]
发表于 2014-01-20 17:15 |只看该作者
回复 2# happy_fish100


   
fish大,换了v4.06版本,现在出现这个错误。去看代码看不懂,我怀疑是路径错了。因为在安装fastdfs的时候,make.sh中的一处路径问题,才让安装成功的。所以可能导致这个问题。        
-lpthread -ldl -lcrypt -L/usr/local/lib -lfastcommon -lfdfsclient -lpcre -lssl -lcrypto -ldl -lz
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_load_groups_store_paths’中:
/root/fastdfs-nginx-module/src/common.c:124:对‘storage_load_paths_from_conf_file_ex’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/root/fastdfs-nginx-module/src/common.c:293:对‘fdfs_load_storage_ids_from_file’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_get_params_from_tracker’中:
/root/fastdfs-nginx-module/src/common.c:1276:对‘fdfs_get_storage_ids_from_tracker_group’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
/root/fastdfs-nginx-module/src/common.c:347:对‘g_storage_id_count’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_http_request_handler’中:
/root/fastdfs-nginx-module/src/common.c:754:对‘storage_split_filename_no_check’未定义的引用
/root/fastdfs-nginx-module/src/common.c:808:对‘trunk_file_stat_func_ex’未定义的引用
/root/fastdfs-nginx-module/src/common.c:973:对‘fdfs_http_get_file_extension’未定义的引用
/root/fastdfs-nginx-module/src/common.c:1133:对‘trunk_get_full_filename_ex’未定义的引用
collect2: 错误: ld 返回 1
make[1]: *** [objs/nginx] 错误 1
make[1]:正在离开目录 `/root/tengine-1.5.2'
make: *** [build] 错误 2

论坛徽章:
0
7 [报告]
发表于 2014-01-20 17:31 |只看该作者
回复 2# happy_fish100


做了client make && make install后,现在出现了这样的问题。
        objs/ngx_modules.o \
        -lpthread -lcrypt -L/usr/local/lib -lfastcommon -lfdfsclient -lpcre -lcrypto -lcrypto -lz
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_load_groups_store_paths’中:
ngx_http_fastdfs_module.c.text+0x28f):对‘storage_load_paths_from_conf_file_ex’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_mod_init’中:
ngx_http_fastdfs_module.c.text+0x7e0):对‘fdfs_load_storage_ids_from_file’未定义的引用
ngx_http_fastdfs_module.c.text+0x9b7):对‘g_storage_id_count’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_http_request_handler’中:
ngx_http_fastdfs_module.c.text+0x186a):对‘storage_split_filename_no_check’未定义的引用
ngx_http_fastdfs_module.c.text+0x1b46):对‘trunk_file_stat_func_ex’未定义的引用
ngx_http_fastdfs_module.c.text+0x20f7):对‘fdfs_http_get_file_extension’未定义的引用
ngx_http_fastdfs_module.c.text+0x277f):对‘trunk_get_full_filename_ex’未定义的引用
objs/addon/src/ngx_http_fastdfs_module.o:在函数‘fdfs_get_params_from_tracker’中:
ngx_http_fastdfs_module.c.text+0x2f24):对‘fdfs_get_storage_ids_from_tracker_group’未定义的引用
collect2: 错误: ld 返回 1
make[1]: *** [objs/nginx] 错误 1
make[1]:正在离开目录 `/root/nginx-1.2.0'
make: *** [build] 错误 2

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
8 [报告]
发表于 2014-01-20 18:07 |只看该作者
很明显的版本不匹配啊!
看过INSTALL这个文件说明了么?

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
9 [报告]
发表于 2014-01-20 18:08 |只看该作者
插件版本和FDFS server版本不匹配!

论坛徽章:
0
10 [报告]
发表于 2014-01-21 09:47 |只看该作者
回复 9# happy_fish100


鱼大,插件 是指nginx还是指fastdfs-nginx-module啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP