免费注册 查看新帖 |

Chinaunix

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

[C++] 问一个thrift编译报错的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-04-23 19:34 |只看该作者 |倒序浏览
今天编译thrift,报错
make[3]: Entering directory `/root/download/thrift-0.9.2/compiler/cpp'
/bin/sh ../../libtool  --tag=CXX   --mode=link /usr/bin/c++ -Wall -Wextra -pedantic -g -O2   -o thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-t_typedef.o thrift-parse.o thrift-t_c_glib_generator.o thrift-t_cpp_generator.o thrift-t_java_generator.o thrift-t_json_generator.o thrift-t_as3_generator.o thrift-t_csharp_generator.o thrift-t_py_generator.o thrift-t_rb_generator.o thrift-t_perl_generator.o thrift-t_php_generator.o thrift-t_erl_generator.o thrift-t_cocoa_generator.o thrift-t_st_generator.o thrift-t_ocaml_generator.o thrift-t_hs_generator.o thrift-t_xsd_generator.o thrift-t_html_generator.o thrift-t_js_generator.o thrift-t_javame_generator.o thrift-t_delphi_generator.o thrift-t_go_generator.o thrift-t_gv_generator.o thrift-t_d_generator.o thrift-t_lua_generator.o libparse.a
libtool: link: /usr/bin/c++ -Wall -Wextra -pedantic -g -O2 -o thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-t_typedef.o thrift-parse.o thrift-t_c_glib_generator.o thrift-t_cpp_generator.o thrift-t_java_generator.o thrift-t_json_generator.o thrift-t_as3_generator.o thrift-t_csharp_generator.o thrift-t_py_generator.o thrift-t_rb_generator.o thrift-t_perl_generator.o thrift-t_php_generator.o thrift-t_erl_generator.o thrift-t_cocoa_generator.o thrift-t_st_generator.o thrift-t_ocaml_generator.o thrift-t_hs_generator.o thrift-t_xsd_generator.o thrift-t_html_generator.o thrift-t_js_generator.o thrift-t_javame_generator.o thrift-t_delphi_generator.o thrift-t_go_generator.o thrift-t_gv_generator.o thrift-t_d_generator.o thrift-t_lua_generator.o  libparse.a
thrift-t_c_glib_generator.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[3]: *** [thrift] Error 1
make[3]: Leaving directory `/root/download/thrift-0.9.2/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/download/thrift-0.9.2/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/download/thrift-0.9.2'
make: *** [all] Error 2

服务器是在阿里云上买的云主机,1核,1G。报这个问题是因为内存太小了吗,还是因为别的原因。1G内存不够编译thrift吗,不会吧?thrift的版本0.9.2的

论坛徽章:
0
2 [报告]
发表于 2015-04-24 09:46 |只看该作者
自己顶一下,别沉了

论坛徽章:
0
3 [报告]
发表于 2015-06-03 13:03 |只看该作者
你好 我今天也遇到了你的问题 你解决了没
我的系统是 Linux version 2.6.32-431.23.3.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014

也是 阿里云的ECS

make[3]: *** [thrift-t_c_glib_generator.o] Error 1
make[3]: Leaving directory `/root/lib/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/lib/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lib/thrift'
make: *** [all] Error 2


论坛徽章:
1
射手座
日期:2013-08-21 13:11:46
4 [报告]
发表于 2015-06-03 19:03 |只看该作者
你可以在自己的机器上面编译一个,然后把二进制头文件弄到服务器上面去
只要glibc的版本,和g++的版本都比服务器的低(包含),就可以了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP