免费注册 查看新帖 |

Chinaunix

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

[FastDFS] CentOS 6.5编译安装FastDFS_v5.05.tar.gz出错 [复制链接]

论坛徽章:
32
CU大牛徽章
日期:2013-05-20 10:45:13每日论坛发贴之星
日期:2015-09-07 06:20:00每日论坛发贴之星
日期:2015-09-07 06:20:00数据库技术版块每日发帖之星
日期:2015-12-13 06:20:0015-16赛季CBA联赛之江苏
日期:2016-03-03 11:56:13IT运维版块每日发帖之星
日期:2016-03-06 06:20:00fulanqi
日期:2016-06-17 17:54:25IT运维版块每日发帖之星
日期:2016-07-23 06:20:0015-16赛季CBA联赛之佛山
日期:2016-08-11 18:06:41JAVA
日期:2016-10-25 16:09:072017金鸡报晓
日期:2017-01-10 15:13:292017金鸡报晓
日期:2017-02-08 10:33:21
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-03-03 14:32 |只看该作者 |倒序浏览
系统:CentOS 6.5 x64

从SourceForge下载了最新的FastDFS_v5.05.tar.gz
http://jaist.dl.sourceforge.net/ ... astDFS_v5.05.tar.gz

先安装了libevent-2.0.21-stable.tar.gz

在编译安装FastDFS时报以下错误:

[root@redis-master FastDFS]# ./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/include/fastcommon
../common/fdfs_global.c:20:20: error: logger.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:14:27: error: common_define.h: No such file or directory
../common/fdfs_global.h:16:29: error: connection_pool.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:26: error: ?.AX_PATH_SIZE?.undeclared here (not in a function)
../common/fdfs_global.h:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.h:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.h:29: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c:23: error: ?.EFAULT_CONNECT_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:24: error: ?.EFAULT_NETWORK_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:26: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.c:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.c:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c: In function ?.dfs_check_data_filename?.
../common/fdfs_global.c:39: warning: implicit declaration of function ?.ogError?
../common/fdfs_global.c:45: warning: implicit declaration of function ?.S_UPPER_HEX?
make: *** [../common/fdfs_global.o] Error 1
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
../common/fdfs_global.c:20:20: error: logger.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:14:27: error: common_define.h: No such file or directory
../common/fdfs_global.h:16:29: error: connection_pool.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:26: error: ?.AX_PATH_SIZE?.undeclared here (not in a function)
../common/fdfs_global.h:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.h:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.h:29: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c:23: error: ?.EFAULT_CONNECT_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:24: error: ?.EFAULT_NETWORK_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:26: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.c:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.c:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c: In function ?.dfs_check_data_filename?.
../common/fdfs_global.c:39: warning: implicit declaration of function ?.ogError?
../common/fdfs_global.c:45: warning: implicit declaration of function ?.S_UPPER_HEX?
make: *** [../common/fdfs_global.o] Error 1
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I../tracker -I/usr/include/fastcommon
../common/fdfs_global.c:20:20: error: logger.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:14:27: error: common_define.h: No such file or directory
../common/fdfs_global.h:16:29: error: connection_pool.h: No such file or directory
In file included from ../common/fdfs_global.c:21:
../common/fdfs_global.h:26: error: ?.AX_PATH_SIZE?.undeclared here (not in a function)
../common/fdfs_global.h:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.h:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.h:29: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c:23: error: ?.EFAULT_CONNECT_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:24: error: ?.EFAULT_NETWORK_TIMEOUT?.undeclared here (not in a function)
../common/fdfs_global.c:26: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._fdfs_version?
../common/fdfs_global.c:27: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._use_connection_pool?
../common/fdfs_global.c:28: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?._connection_pool?
../common/fdfs_global.c: In function ?.dfs_check_data_filename?.
../common/fdfs_global.c:39: warning: implicit declaration of function ?.ogError?
../common/fdfs_global.c:45: warning: implicit declaration of function ?.S_UPPER_HEX?
make: *** [../common/fdfs_global.o] Error 1

论坛徽章:
32
CU大牛徽章
日期:2013-05-20 10:45:13每日论坛发贴之星
日期:2015-09-07 06:20:00每日论坛发贴之星
日期:2015-09-07 06:20:00数据库技术版块每日发帖之星
日期:2015-12-13 06:20:0015-16赛季CBA联赛之江苏
日期:2016-03-03 11:56:13IT运维版块每日发帖之星
日期:2016-03-06 06:20:00fulanqi
日期:2016-06-17 17:54:25IT运维版块每日发帖之星
日期:2016-07-23 06:20:0015-16赛季CBA联赛之佛山
日期:2016-08-11 18:06:41JAVA
日期:2016-10-25 16:09:072017金鸡报晓
日期:2017-01-10 15:13:292017金鸡报晓
日期:2017-02-08 10:33:21
2 [报告]
发表于 2015-03-03 14:42 |只看该作者
我继续了这个工作,发现
FastDFS_v5.03.tar.gz
FastDFS_v5.02.tar.gz
编译正常

FastDFS_v5.04.tar.gz
FastDFS_v5.05.tar.gz
这两个版本不能通过编译。

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亚洲杯之伊拉克
日期:2015-03-09 13:57:11
3 [报告]
发表于 2015-03-04 08:46 |只看该作者
回复 2# jieforest


    libfastcommon-master.zip  5.5版本的需要安装这个才能安装fastDFS

论坛徽章:
32
CU大牛徽章
日期:2013-05-20 10:45:13每日论坛发贴之星
日期:2015-09-07 06:20:00每日论坛发贴之星
日期:2015-09-07 06:20:00数据库技术版块每日发帖之星
日期:2015-12-13 06:20:0015-16赛季CBA联赛之江苏
日期:2016-03-03 11:56:13IT运维版块每日发帖之星
日期:2016-03-06 06:20:00fulanqi
日期:2016-06-17 17:54:25IT运维版块每日发帖之星
日期:2016-07-23 06:20:0015-16赛季CBA联赛之佛山
日期:2016-08-11 18:06:41JAVA
日期:2016-10-25 16:09:072017金鸡报晓
日期:2017-01-10 15:13:292017金鸡报晓
日期:2017-02-08 10:33:21
4 [报告]
发表于 2015-03-05 17:18 |只看该作者
回复 3# FILERF


    谢谢!目前我已经部署了FastDFS 5.03版。下一步根据您的提示重新验证FastDFS 5.05版的安装。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP