Chinaunix
标题:
在CentOS 环境下编译安装FastDFS过程中出现的问题
[打印本页]
作者:
lqnamepwd
时间:
2015-04-09 14:10
标题:
在CentOS 环境下编译安装FastDFS过程中出现的问题
本帖最后由 lqnamepwd 于 2015-04-10 17:38 编辑
一下为安装的错误信息
NPRO}JBQ1UN`V4EM1KZ52DY.png
(46.75 KB, 下载次数: 67)
下载附件
2015-04-09 14:06 上传
在安装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
时间:
2015-04-16 19:47
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2