免费注册 查看新帖 |

Chinaunix

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

[FastDFS] MacOS10.8.2安装fastdfs4.0.6遇到两个问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-03-01 03:41 |只看该作者 |倒序浏览
余老大:
   你好。
   今天我安装fastdfs最新的4.0.6版时碰到了2个问题(好像解决了一个,不知道是不是真的解决了)

问题1:
sudu ./make install 的时候
ln: /usr/lib64/libfastcommon.so: No such file or directory
ln: /usr/lib64/libfdfsclient.so: No such file or directory

我系统是64位的mac os 10.8.2,上面没有/usr/lib64这个文件夹,后来我手动创建文件夹后就没有提示这个错了,不知道算解决了没。


问题2:
上面的问题解决后,报出了接下来的错误
mkdir -p /usr/local/bin
mkdir -p /etc/fdfs
cp -f fdfs_trackerd  /usr/local/bin
cp: fdfs_trackerd: No such file or directory
make: *** [install] Error 1

麻烦余老大帮下忙,谢谢了。

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2013-03-01 22:30 |只看该作者
哥们
你的mac下咋弄的ldconfig?

论坛徽章:
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
3 [报告]
发表于 2013-03-02 13:41 |只看该作者
后面拷贝文件失败,明显是没有编译成功。
请看一下编译出错信息

论坛徽章:
0
4 [报告]
发表于 2013-03-04 01:36 |只看该作者
本帖最后由 chenjiejava 于 2013-03-04 01:37 编辑

回复 3# happy_fish100

余老大,谢谢你的回复,我又执行了一下make.sh,主要信息如下
tracker_mem.c:5131:13: error: use of undeclared identifier 'ENONET'
                *result = ENONET;
                          ^
35 warnings and 1 error generated.
make: *** [tracker_mem.o] Error 1
make: Nothing to be done for `all'.
make: Nothing to be done for `all'.

35个警告和1个error,是我gcc的问题吗?我装的是xcode最新的4.6,安装了里边的commond line tools
我的gcc版本信息:gcc version 4.2.1 (Based on Apple Inc. build 565 (LLVM build 2336.11.00)


   

论坛徽章:
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
5 [报告]
发表于 2013-03-04 10:11 |只看该作者
回复 4# chenjiejava

感谢你的反馈,我找个环境试试。

论坛徽章:
0
6 [报告]
发表于 2013-03-04 16:50 |只看该作者
回复 5# happy_fish100


好的,谢谢余老大
我同事也是air,跟我出同样的问题。  

论坛徽章:
0
7 [报告]
发表于 2013-03-05 15:16 |只看该作者
我的也是有这个问题,mac pro osx  10.8.2
tracker_mem.c:2038:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.success_sync_out_bytes, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2040:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.total_file_open_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2042:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.success_file_open_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2044:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.total_file_read_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2046:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.success_file_read_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2048:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.total_file_write_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2050:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->stat.success_file_write_count, \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:2060:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
                                pStorage->changelog_offset \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:49:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^
tracker_mem.c:5131:13: error: use of undeclared identifier 'ENONET'
                *result = ENONET;
                          ^
35 warnings and 1 error generated.
make: *** [tracker_mem.o] Error 1
make: Nothing to be done for `all'.
make: Nothing to be done for `all'.

论坛徽章:
0
8 [报告]
发表于 2013-03-05 18:03 |只看该作者
创建/usr/lib64目录,并在/usr/include/sys/errno.h加以下代码下,make成功,install成功。
#define ENONET 64 /* Machine is not on the network */

论坛徽章:
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 [报告]
发表于 2013-03-05 18:48 |只看该作者
为啥iOS系统没有ENONET这个错误码呢?

论坛徽章:
0
10 [报告]
发表于 2013-03-06 02:29 |只看该作者
zjunbao 发表于 2013-03-05 18:03
创建/usr/lib64目录,并在/usr/include/sys/errno.h加以下代码下,make成功,install成功。
#define ENONE ...


感谢zjunbao提供的方法:)
建议余老大弄个for-mac版的,mac用户还是挺多的,安装的时候就不用手动修改文件了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP