免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 在CentOS 环境下编译安装FastDFS过程中出现的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-04-09 14:10 |只看该作者 |倒序浏览
本帖最后由 lqnamepwd 于 2015-04-10 17:38 编辑

一下为安装的错误信息






在安装FastDFs之前我 重安装了libevent-2.0.21-stable  , 编译安装了  libfastcommon  。

最主要的还是  出现的错误信息  /usr/bin/ld: cannot find -lfastcommon   , 怎么才能找到 这个lfastcommon  


各位大神,  fish 大大,  能不能给我点建议, 帮我看看 怎么回事, 跪求  



上面的问题, 用的最新的FastDFS5.05的包, 出现这种问题 。


我就选择用了5.02的包来安装, 不会出现这种问题。

但是到现在, 安装到storage  的nginx的时候,

nginx  安装加入 --add-module=/home/cluster3/fastdfs-nginx-module/src
最后make的时候,

又出现了错误了, 对linux不是很熟, 普通安装这些可以, 但是分析错误这些还是不够实力,

如下是 安装nginix 加入 fastdfs-nginx-module  的时候,报的错误信息,

                src/http/modules/ngx_http_upstream_ip_hash_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"' -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/fastdfs -I /usr/local/include/fastcommon/ -I objs -I src/http -I src/http/modules \
                -o objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
                src/http/modules/ngx_http_upstream_least_conn_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"' -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/fastdfs -I /usr/local/include/fastcommon/ -I objs -I src/http -I src/http/modules \
                -o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
                src/http/modules/ngx_http_upstream_keepalive_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='"/etc/fdfs/mod_fastdfs.conf"'  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/fastdfs -I /usr/local/include/fastcommon/ -I objs -I src/http -I src/http/modules -I src/mail \
                -o objs/addon/src/ngx_http_fastdfs_module.o \
                /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c
In file included from /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/data/soft/fastdfs-nginx-module/src/common.c: 在函数‘fdfs_mod_init’中:
/data/soft/fastdfs-nginx-module/src/common.c:188: 错误:‘g_fdfs_path_count’未声明(在此函数内第一次使用)
/data/soft/fastdfs-nginx-module/src/common.c:188: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/data/soft/fastdfs-nginx-module/src/common.c:188: 错误:所在的函数内也只报告一次。)
cc1: warnings being treated as errors
In file included from /data/soft/fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/data/soft/fastdfs-nginx-module/src/common.c: 在函数‘fdfs_http_request_handler’中:
/data/soft/fastdfs-nginx-module/src/common.c:641: 错误:传递‘fdfs_http_get_content_type_by_extname’的第 3 个参数时将指针赋给整数,未作类型转换
/usr/local/include/fastdfs/fdfs_http_shared.h:116: 附注:需要类型‘int’,但实参的类型为‘char *’
/data/soft/fastdfs-nginx-module/src/common.c:641: 错误:传递‘fdfs_http_get_content_type_by_extname’的第 4 个参数时将整数赋给指针,未作类型转换
/usr/local/include/fastdfs/fdfs_http_shared.h:116: 附注:需要类型‘char *’,但实参的类型为‘unsigned int’
/data/soft/fastdfs-nginx-module/src/common.c:641: 错误:提供给函数‘fdfs_http_get_content_type_by_extname’的实参太少
/data/soft/fastdfs-nginx-module/src/common.c:723: 错误:‘TrackerServerInfo’未声明(在此函数内第一次使用)
/data/soft/fastdfs-nginx-module/src/common.c:723: 错误:expected ‘;’ before ‘storage_server’
/data/soft/fastdfs-nginx-module/src/common.c:727: 错误:‘storage_server’未声明(在此函数内第一次使用)
/data/soft/fastdfs-nginx-module/src/common.c:774: 错误:下标运算的左操作数既非数组也非指针
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
make[1]: Leaving directory `/data/soft/nginx'
make: *** [build] 错误 2
[root@CentOS nginx]# clear
[root@CentOS nginx]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  Makefile  man  objs  README  src
[root@CentOS nginx]#



还请, 各位大神, 帮忙看看, 分析分析, 研究两三天了, 没搞出头绪来。  
谢谢了。。

yinwq0558 该用户已被删除
2 [报告]
发表于 2015-04-16 19:47 来自手机 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP