免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: q288288
打印 上一主题 下一主题

[FastDFS] 关于最近的FastDFS和FastDHT安装出错,余大大已更新版本,希望大家下载 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2015-01-04 11:03 |只看该作者
q288288 发表于 2015-01-04 08:52
回复 19# xucong0701
nginx还是需要这些依赖包,可以使用命令卸载是yum remove ...

好的,谢啦,那如果只安装FastDFS的话只需要提前安装libfastcommon-master.zip这个包就行了吧?

论坛徽章:
1
寅虎
日期:2014-12-04 11:16:20
22 [报告]
发表于 2015-01-05 08:11 |只看该作者
本帖最后由 q288288 于 2015-01-05 08:17 编辑

回复 21# xucong0701
对,安装时你可以看看解压后的文件夹里的INSTALL文件(如果存在的话)
-eg:
  1. vi /usr/local/src/FastDFS/INSTALL
复制代码
/usr/local/src/FastDFS为fastdfs解压后根目录
那里面有详细的安装步骤和需要安装的依赖包

   

论坛徽章:
0
23 [报告]
发表于 2015-01-05 20:20 |只看该作者
  1. ./make.sh
  2. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o hash.lo hash.c  
  3. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o chain.lo chain.c  
  4. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o shared_func.lo shared_func.c  
  5. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ini_file_reader.lo ini_file_reader.c  
  6. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o logger.lo logger.c  
  7. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o sockopt.lo sockopt.c  
  8. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o base64.lo base64.c  
  9. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o sched_thread.lo sched_thread.c  
  10. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o http_func.lo http_func.c  
  11. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o md5.lo md5.c  
  12. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o pthread_func.lo pthread_func.c  
  13. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o local_ip_func.lo local_ip_func.c  
  14. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o avl_tree.lo avl_tree.c  
  15. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ioevent.lo ioevent.c  
  16. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ioevent_loop.lo ioevent_loop.c  
  17. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_task_queue.lo fast_task_queue.c  
  18. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_timer.lo fast_timer.c  
  19. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o process_ctrl.lo process_ctrl.c  
  20. process_ctrl.c: In function ‘process_start’:
  21. process_ctrl.c:146:9: warning: passing argument 4 of ‘getFileContentEx’ from incompatible pointer type [enabled by default]
  22.          if ((result=getFileContentEx(cmdfile, cmdline, 0, &cmdsz)) != 0) {
  23.          ^
  24. In file included from process_ctrl.c:6:0:
  25. shared_func.h:407:5: note: expected ‘int64_t *’ but argument is of type ‘long int *’
  26. int getFileContentEx(const char *filename, char *buff, \
  27.      ^
  28. process_ctrl.c:152:9: warning: passing argument 4 of ‘getFileContentEx’ from incompatible pointer type [enabled by default]
  29.          if ((result=getFileContentEx(cmdfile, argv0, 0, &cmdsz)) != 0) {
  30.          ^
  31. In file included from process_ctrl.c:6:0:
  32. shared_func.h:407:5: note: expected ‘int64_t *’ but argument is of type ‘long int *’
  33. int getFileContentEx(const char *filename, char *buff, \
  34.      ^
  35. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_mblock.lo fast_mblock.c  
  36. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o connection_pool.lo connection_pool.c  
  37. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o libfastcommon.so  -shared hash.lo chain.lo shared_func.lo ini_file_reader.lo logger.lo sockopt.lo base64.lo sched_thread.lo http_func.lo md5.lo pthread_func.lo local_ip_func.lo avl_tree.lo ioevent.lo ioevent_loop.lo fast_task_queue.lo fast_timer.lo process_ctrl.lo fast_mblock.lo connection_pool.lo
  38. ar rcs libfastcommon.a hash.o
复制代码
libfastcommon 不支持32计算机吗?{:2_170:}

论坛徽章:
0
24 [报告]
发表于 2015-01-06 10:21 |只看该作者
安装nginx-module模块时,一直编译不进nginx模块,在make &&  make install时报的错:
/usr/bin/ld: cannot find -lfdfsclient
collect2: ld 返回 1
make[1]: *** [objs/nginx] 错误 1
make[1]: Leaving directory `/fastdfs/src/nginx-1.7.8'
make: *** [build] 错误 2

对于fastdfs-nginx-module/src/config配置文件,作了一点修改,如下:
ngx_addon_name=ngx_http_fastdfs_module
HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"
CORE_INCS="$CORE_INCS /usr/local/fastdfs/include/fastdfs /usr/include/fastcommon/"
CORE_LIBS="$CORE_LIBS -L/usr/local/lib -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/usr/local/fastdfs/conf/mod_fastdfs.conf\"'"
在/usr/local/lib下面已存在libfastcommon.so以及libfdfsclient.so,为什么还是说找不到lfdfsclient,不解啊,有大侠相助一下吗?

论坛徽章:
1
寅虎
日期:2014-12-04 11:16:20
25 [报告]
发表于 2015-01-06 11:02 |只看该作者
回复 23# LinuxCaiB
这是个警告,不影响执行结果,元定义是
  1. long cmdsz = sizeof cmdline;
复制代码
修改成
  1. int64_t cmdsz = sizeof cmdline;
复制代码
就不会报错了。
然后安装FastDFS的时候做个软连接,因为32位系统寻找的是lib目录,
  1. [root@cent FastDFS]# ln -sv /usr/include/fastcommon/ /usr/local/include/fastcommon
  2. "/usr/local/include/fastcommon" -> "/usr/include/fastcommon/"
  3. [root@cent FastDFS]# ln -sv /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  4. "/usr/local/lib/libfastcommon.so" -> "/usr/lib64/libfastcommon.so"
  5. [root@cent FastDFS]# ln -sv /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
  6. "/usr/lib/libfastcommon.so" -> "/usr/lib64/libfastcommon.so"
复制代码

论坛徽章:
1
寅虎
日期:2014-12-04 11:16:20
26 [报告]
发表于 2015-01-06 11:08 |只看该作者
回复 24# xucong0701
你用的系统如果是64位的话,它会在lib64下寻找,设置软连接如下:
  1. ln -sv /usr/include/fastcommon /usr/local/include/fastcommon
  2. ln -sv /usr/local/FastDFS/include/fastdfs /usr/local/include/fastdfs
  3. ln -sv /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  4. ln -sv /usr/local/FastDFS/lib64/libfdfsclient.so /usr/lib64/libfdfsclient.so
复制代码
ps:/usr/local/FastDFS是我的安装目录,好像第2,3个软连接是不必要的
   

论坛徽章:
0
27 [报告]
发表于 2015-01-06 12:33 |只看该作者
q288288 发表于 2015-01-06 11:08
回复 24# xucong0701
你用的系统如果是64位的话,它会在lib64下寻找,设置软连接如下:ps:/usr/local/Fas ...

我之前在安装libfastcommon的时候已经设置了如下软连接,能看下有问题不?
ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

论坛徽章:
0
28 [报告]
发表于 2015-01-06 12:50 |只看该作者
回复 26# q288288


    设置了一下这个ln -sv /usr/local/Fastdfs/lib64/libfdfsclient.so /usr/lib64/libfdfsclient.so可以了,多谢啊~~~~

论坛徽章:
0
29 [报告]
发表于 2015-01-06 13:21 |只看该作者
你好,官网访问不了,你这有文档吗?

论坛徽章:
1
寅虎
日期:2014-12-04 11:16:20
30 [报告]
发表于 2015-01-06 14:11 |只看该作者
本帖最后由 q288288 于 2015-01-06 14:15 编辑

回复 29# drew926
希望这是你需要的,其他的没有了~~现在官网链接的就是论坛,你应该可以在论坛找到你需要的
FastDHT_Java_Doc_v1.05.tar.gz (27.5 KB, 下载次数: 18)
FastDFS_Java_Doc_v1.20.tar.gz (68.95 KB, 下载次数: 22)
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP