免费注册 查看新帖 |

Chinaunix

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

[FastDFS] FastDFS V4.06编译和安装时报的错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-20 17:03 |只看该作者 |倒序浏览
想了解一下FastDFS适不适合项目关于文件存储、读取的需要,今天把最新版的FastDFS下载下来,找了一台linux服务器准备进行安装测试。

结果一开头,就遇到了问题,没法进行下去,在这请教各位大拿们,帮我看看问题原因,不甚感激。

问题截图如下:

1、  解压后,使用root用户 执行  ./make.sh  报错:


2、 编译时出错了,尝试安装  使用root用户 执行  ./make.sh install 报错:



情帮我看看是环境的问题,还是哪的操作不对,谢谢啊。

论坛徽章:
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
2 [报告]
发表于 2014-03-20 17:27 |只看该作者
回复 1# stonebaba

v5.0以前的版本,需要先编译和安装libevent。
建议你下载最新的v5.01试试。

因google code后来不支持上传程序包,最新的v5.01可以在sourceforge上下载。
下载地址:https://sourceforge.net/projects/fastdfs/files/

论坛徽章:
0
3 [报告]
发表于 2014-03-20 17:30 |只看该作者
回复 2# happy_fish100


  太好了,我试试看啊,太谢谢了~~

   

论坛徽章:
0
4 [报告]
发表于 2014-03-20 17:44 |只看该作者
happy_fish100 发表于 2014-03-20 17:27
回复 1# stonebaba

v5.0以前的版本,需要先编译和安装libevent。


我已经下载了最新的  FastDFS_v5.01.tar.gz  ,编译时报的错好像和之前的类似:



还得麻烦您帮我分析下问题原因,谢谢啊。

论坛徽章:
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 [报告]
发表于 2014-03-20 17:56 |只看该作者
用的cc编译器,而不是gcc?

论坛徽章:
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
6 [报告]
发表于 2014-03-20 17:57 |只看该作者
请确认cc编译器就是gcc,另外可以检查一下编译器版本

论坛徽章:
0
7 [报告]
发表于 2014-03-21 10:44 |只看该作者
本帖最后由 stonebaba 于 2014-03-21 10:56 编辑
happy_fish100 发表于 2014-03-20 17:57
请确认cc编译器就是gcc,另外可以检查一下编译器版本


上午好~~  上午一来我就赶紧看坛子里的帖子了,谢谢您的回复。

按照您的说法,我在服务器上执行了以下命令,来查看cc 、 gcc 的相关信息,发图上来,您看看有没有啥问题?

论坛徽章:
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
8 [报告]
发表于 2014-03-21 17:01 |只看该作者
不科学啊!你确认一下common/chain.h这个文件有的吧?

论坛徽章:
0
9 [报告]
发表于 2014-03-21 17:18 |只看该作者
回复 9# happy_fish100

好像没有那个文件,我把我从解压到查看解压后的命令及结果发上来:



[root@jcvs-test02 setup]# tar -zxvf FastDFS_v5.01.tar.gz
FastDFS/
FastDFS/make.sh
FastDFS/stop.sh
FastDFS/init.d/
FastDFS/init.d/fdfs_storaged
FastDFS/init.d/fdfs_trackerd
FastDFS/client/
FastDFS/client/fdfs_appender_test.c
FastDFS/client/fdfs_monitor.c
FastDFS/client/fdfs_download_file.c
FastDFS/client/client_global.c
FastDFS/client/fdfs_test.c
FastDFS/client/fdfs_delete_file.c
FastDFS/client/storage_client.h
FastDFS/client/storage_client1.h
FastDFS/client/storage_client.c
FastDFS/client/fdfs_upload_file.c
FastDFS/client/test/
FastDFS/client/test/fdfs_monitor.c
FastDFS/client/test/fdfs_test.c
FastDFS/client/test/Makefile.in
FastDFS/client/test/fdfs_test1.c
FastDFS/client/fdfs_file_info.c
FastDFS/client/tracker_client.c
FastDFS/client/fdfs_link_library.sh.in
FastDFS/client/Makefile.in
FastDFS/client/fdfs_client.h
FastDFS/client/tracker_client.h
FastDFS/client/fdfs_crc32.c
FastDFS/client/client_func.h
FastDFS/client/client_func.c
FastDFS/client/fdfs_append_file.c
FastDFS/client/fdfs_appender_test1.c
FastDFS/client/fdfs_test1.c
FastDFS/client/client_global.h
FastDFS/client/fdfs_upload_appender.c
FastDFS/restart.sh
FastDFS/test/
FastDFS/test/test_delete.c
FastDFS/test/common_func.c
FastDFS/test/common_func.h
FastDFS/test/dfs_func.h
FastDFS/test/test_download.sh
FastDFS/test/test_types.h
FastDFS/test/test_upload.c
FastDFS/test/Makefile
FastDFS/test/combine_result.c
FastDFS/test/dfs_func.c
FastDFS/test/test_download.c
FastDFS/test/dfs_func_pc.c
FastDFS/test/test_delete.sh
FastDFS/test/test_upload.sh
FastDFS/test/gen_files.c
FastDFS/php_client/
FastDFS/php_client/fastdfs_test.php
FastDFS/php_client/fastdfs_client.ini
FastDFS/php_client/fastdfs_appender_test.php
FastDFS/php_client/fastdfs_client.c
FastDFS/php_client/fastdfs_test_slave.php
FastDFS/php_client/fastdfs_appender_test1.php
FastDFS/php_client/fastdfs_callback_test.php
FastDFS/php_client/fastdfs_client.h
FastDFS/php_client/README
FastDFS/php_client/config.m4
FastDFS/php_client/fastdfs_test1.php
FastDFS/COPYING-3_0.txt
FastDFS/storage/
FastDFS/storage/storage_dio.c
FastDFS/storage/storage_ip_changed_dealer.c
FastDFS/storage/storage_disk_recovery.h
FastDFS/storage/storage_dio.h
FastDFS/storage/storage_service.h
FastDFS/storage/storage_global.h
FastDFS/storage/storage_service.c
FastDFS/storage/storage_func.c
FastDFS/storage/fdht_client/
FastDFS/storage/fdht_client/fdht_client.c
FastDFS/storage/fdht_client/fdht_global.h
FastDFS/storage/fdht_client/fdht_func.c
FastDFS/storage/fdht_client/fdht_func.h
FastDFS/storage/fdht_client/fdht_client.h
FastDFS/storage/fdht_client/fdht_proto.c
FastDFS/storage/fdht_client/fdht_types.h
FastDFS/storage/fdht_client/fdht_global.c
FastDFS/storage/fdht_client/fdht_proto.h
FastDFS/storage/fdht_client/fdht_proto_types.h
FastDFS/storage/fdht_client/fdht_define.h
FastDFS/storage/storage_sync.c
FastDFS/storage/storage_param_getter.h
FastDFS/storage/storage_global.c
FastDFS/storage/storage_dump.h
FastDFS/storage/Makefile.in
FastDFS/storage/storage_sync.h
FastDFS/storage/tracker_client_thread.c
FastDFS/storage/storage_param_getter.c
FastDFS/storage/trunk_mgr/
FastDFS/storage/trunk_mgr/trunk_mem.h
FastDFS/storage/trunk_mgr/trunk_free_block_checker.h
FastDFS/storage/trunk_mgr/trunk_mem.c
FastDFS/storage/trunk_mgr/trunk_client.h
FastDFS/storage/trunk_mgr/trunk_shared.c
FastDFS/storage/trunk_mgr/trunk_client.c
FastDFS/storage/trunk_mgr/trunk_sync.h
FastDFS/storage/trunk_mgr/trunk_shared.h
FastDFS/storage/trunk_mgr/trunk_sync.c
FastDFS/storage/trunk_mgr/trunk_free_block_checker.c
FastDFS/storage/storage_disk_recovery.c
FastDFS/storage/fdfs_storaged.c
FastDFS/storage/storage_dump.c
FastDFS/storage/storage_func.h
FastDFS/storage/storage_ip_changed_dealer.h
FastDFS/storage/storage_nio.c
FastDFS/storage/tracker_client_thread.h
FastDFS/storage/storage_nio.h
FastDFS/conf/
FastDFS/conf/storage.conf
FastDFS/conf/http.conf
FastDFS/conf/mime.types
FastDFS/conf/anti-steal.jpg
FastDFS/conf/client.conf
FastDFS/conf/storage_ids.conf
FastDFS/conf/tracker.conf
FastDFS/tracker/
FastDFS/tracker/tracker_proto.c
FastDFS/tracker/tracker_dump.c
FastDFS/tracker/tracker_global.c
FastDFS/tracker/tracker_func.c
FastDFS/tracker/tracker_service.h
FastDFS/tracker/tracker_http_check.c
FastDFS/tracker/tracker_relationship.c
FastDFS/tracker/tracker_mem.h
FastDFS/tracker/tracker_http_check.h
FastDFS/tracker/tracker_status.h
FastDFS/tracker/tracker_status.c
FastDFS/tracker/Makefile.in
FastDFS/tracker/tracker_mem.c
FastDFS/tracker/fdfs_shared_func.h
FastDFS/tracker/tracker_proto.h
FastDFS/tracker/tracker_types.h
FastDFS/tracker/tracker_global.h
FastDFS/tracker/tracker_service.c
FastDFS/tracker/tracker_nio.c
FastDFS/tracker/fdfs_trackerd.c
FastDFS/tracker/tracker_nio.h
FastDFS/tracker/tracker_relationship.h
FastDFS/tracker/tracker_dump.h
FastDFS/tracker/tracker_func.h
FastDFS/tracker/fdfs_shared_func.c
FastDFS/INSTALL
FastDFS/README
FastDFS/HISTORY
FastDFS/common/
FastDFS/common/ioevent_loop.c
FastDFS/common/hash.h
FastDFS/common/shared_func.h
FastDFS/common/fast_task_queue.c
FastDFS/common/fast_timer.h
FastDFS/common/sockopt.h
FastDFS/common/fdfs_global.h
FastDFS/common/ioevent.c
FastDFS/common/fdfs_define.h
FastDFS/common/pthread_func.h
FastDFS/common/fast_task_queue.h
FastDFS/common/common_define.h
FastDFS/common/_os_bits.h
FastDFS/common/sockopt.c
FastDFS/common/process_ctrl.c
FastDFS/common/ioevent.h
FastDFS/common/linux_stack_trace.h
FastDFS/common/shared_func.c
FastDFS/common/fdfs_http_shared.c
FastDFS/common/mime_file_parser.h
FastDFS/common/fast_mblock.c
FastDFS/common/chain.c
FastDFS/common/fast_timer.c
FastDFS/common/base64.h
FastDFS/common/mime_file_parser.c
FastDFS/common/md5.h
FastDFS/common/http_func.h
FastDFS/common/Makefile
FastDFS/common/pthread_func.c
FastDFS/common/fast_mblock.h
FastDFS/common/ioevent_loop.h
FastDFS/common/sched_thread.c
FastDFS/common/base64.c
FastDFS/common/fdfs_http_shared.h
FastDFS/common/logger.h
FastDFS/common/avl_tree.c
FastDFS/common/linux_stack_trace.c
FastDFS/common/local_ip_func.c
FastDFS/common/hash.c
FastDFS/common/sched_thread.h
FastDFS/common/process_ctrl.h

gzip: stdin: unexpected end of file
FastDFS/common/logger.c
tar: 跳转到下一个头
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[root@jcvs-test02 setup]# ll
总用量 1548
drwxrwxr-x. 10      500    500   4096 2月   6 18:08 FastDFS
-rw-r--r--.  1 weblogic oracle  13162 3月  20 15:31 fastdfs-apache-module_v1.15.tar.gz
-rw-r--r--.  1 weblogic oracle  17264 3月  20 15:31 fastdfs-nginx-module_v1.15.tar.gz
-rw-r--r--.  1 weblogic oracle 358556 3月  20 16:33 FastDFS_v3.06.tar.gz
-rw-r--r--.  1 weblogic oracle 371181 3月  20 16:17 FastDFS_v3.11.tar.gz
-rw-r--r--.  1 weblogic oracle 398656 3月  20 15:31 FastDFS_v4.06.tar.gz
-rw-r--r--.  1 weblogic oracle 405837 3月  20 17:33 FastDFS_v5.01.tar.gz
[root@jcvs-test02 setup]#
[root@jcvs-test02 setup]# chown -R root:root FastDFS/
[root@jcvs-test02 setup]# cd FastDFS
[root@jcvs-test02 FastDFS]# ll
总用量 128
drwxrwxr-x. 3 root root  4096 2月   6 18:07 client
drwxrwxr-x. 2 root root  4096 2月   6 18:07 common
drwxrwxr-x. 2 root root  4096 2月   6 18:07 conf
-rw-rw-r--. 1 root root 35067 7月  28 2008 COPYING-3_0.txt
-rw-rw-r--. 1 root root 29691 2月   2 13:17 HISTORY
drwxrwxr-x. 2 root root  4096 2月   6 18:07 init.d
-rw-rw-r--. 1 root root  7639 1月   5 14:08 INSTALL
-rwxrwxr-x. 1 root root  5531 12月  7 15:19 make.sh
drwxrwxr-x. 2 root root  4096 2月   6 18:07 php_client
-rw-rw-r--. 1 root root  2380 7月  28 2008 README
-rwxrwxr-x. 1 root root  1768 4月  12 2010 restart.sh
-rwxrwxr-x. 1 root root  1680 4月  10 2010 stop.sh
drwxrwxr-x. 4 root root  4096 2月   6 18:07 storage
drwxrwxr-x. 2 root root  4096 2月   6 18:07 test
drwxrwxr-x. 2 root root  4096 2月   6 18:07 tracker
[root@jcvs-test02 FastDFS]# cd common
[root@jcvs-test02 common]# ll
总用量 368
-rw-rw-r--. 1 root root 14851 7月  15 2012 avl_tree.c
-rw-rw-r--. 1 root root 10148 3月  31 2011 base64.c
-rw-rw-r--. 1 root root  4006 3月  31 2011 base64.h
-rw-rw-r--. 1 root root  5080 5月  15 2010 chain.c
-rw-rw-r--. 1 root root  3335 4月  10 2013 common_define.h
-rw-rw-r--. 1 root root  5021 12月  1 2012 fast_mblock.c
-rw-rw-r--. 1 root root  2164 2月  26 2011 fast_mblock.h
-rw-rw-r--. 1 root root 11147 2月   1 14:14 fast_task_queue.c
-rw-rw-r--. 1 root root  2186 2月   1 14:14 fast_task_queue.h
-rw-rw-r--. 1 root root  3946 12月 22 21:18 fast_timer.c
-rw-rw-r--. 1 root root  1146 12月  1 19:34 fast_timer.h
-rw-rw-r--. 1 root root   946 7月  10 2010 fdfs_define.h
-rw-rw-r--. 1 root root  1005 12月 20 2012 fdfs_global.h
-rw-rw-r--. 1 root root  8966 1月  13 2013 fdfs_http_shared.c
-rw-rw-r--. 1 root root  3117 1月  13 2013 fdfs_http_shared.h
-rw-rw-r--. 1 root root 30335 2月   1 21:57 hash.c
-rw-rw-r--. 1 root root 10573 2月   1 21:57 hash.h
-rw-rw-r--. 1 root root  1318 11月 14 2012 http_func.h
-rw-rw-r--. 1 root root  4470 12月  7 15:19 ioevent.c
-rw-rw-r--. 1 root root  2600 12月  7 15:19 ioevent.h
-rw-rw-r--. 1 root root  3431 2月   1 14:14 ioevent_loop.c
-rw-rw-r--. 1 root root   471 2月   1 14:14 ioevent_loop.h
-rw-rw-r--. 1 root root  3943 12月  1 2010 linux_stack_trace.c
-rw-rw-r--. 1 root root   518 1月  13 2010 linux_stack_trace.h
-rw-rw-r--. 1 root root  2774 5月  13 2012 local_ip_func.c
-rw-rw-r--. 1 root root 13990 12月 30 2012 logger.c
-rw-rw-r--. 1 root root  5689 10月 28 2012 logger.h
-rw-rw-r--. 1 root root   790 6月   7 2010 Makefile
-rw-rw-r--. 1 root root  1272 11月 25 2011 md5.h
-rw-rw-r--. 1 root root  2700 2月   1 21:57 mime_file_parser.c
-rw-rw-r--. 1 root root   990 11月 14 2012 mime_file_parser.h
-rw-rw-r--. 1 root root    87 8月   2 2013 _os_bits.h
-rw-rw-r--. 1 root root  4777 2月   2 13:17 process_ctrl.c
-rw-rw-r--. 1 root root   703 2月   2 13:17 process_ctrl.h
-rw-rw-r--. 1 root root  4307 11月 14 2010 pthread_func.c
-rw-rw-r--. 1 root root   845 11月 14 2012 pthread_func.h
-rw-rw-r--. 1 root root 11375 12月 31 2012 sched_thread.c
-rw-rw-r--. 1 root root  1978 12月 31 2012 sched_thread.h
-rw-rw-r--. 1 root root 38228 5月  22 2013 shared_func.c
-rw-rw-r--. 1 root root 13332 1月   4 18:57 shared_func.h
-rw-rw-r--. 1 root root 31536 8月  18 2013 sockopt.c
-rw-rw-r--. 1 root root 10835 7月   8 2012 sockopt.h
[root@jcvs-test02 common]#


   

论坛徽章:
0
10 [报告]
发表于 2014-03-21 17:21 |只看该作者
回复 10# stonebaba

我仔细看了下,应该是解压时出错了,不知道和系统有没有关系,我尝试从别的地方解压后,上传上去试试。


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP