Chinaunix
标题:
问一个thrift编译报错的问题
[打印本页]
作者:
pgt112you
时间:
2015-04-23 19:34
标题:
问一个thrift编译报错的问题
今天编译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的
作者:
pgt112you
时间:
2015-04-24 09:46
自己顶一下,别沉了
作者:
hu_lu_wa
时间:
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
作者:
egmkang
时间:
2015-06-03 19:03
你可以在自己的机器上面编译一个,然后把二进制头文件弄到服务器上面去
只要glibc的版本,和g++的版本都比服务器的低(包含),就可以了
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2