构建apache thrift时出错

时间:2013-08-12 09:13:50

标签: ubuntu build makefile thrift thrift-protocol

我尝试在我的linux机器上构建(make)apache trift,并且在构建过程中遇到以下错误:

make[3]: Entering directory `/home/developer/tools/apache-thrift/thrift-0.9.0/lib/erl'
./rebar get-deps
==> jsx (get-deps)
==> erl (get-deps)
./rebar compile
==> jsx (compile)
src/jsx_decoder.erl:123: redefining macro 'new_seq'
src/jsx_decoder.erl:126: redefining macro 'acc_seq'
src/jsx_decoder.erl:660: argument mismatch for macro 'acc_seq'
src/jsx_decoder.erl:626: function low_surrogate/4 undefined
src/jsx_decoder.erl:682: Warning: function is_partial_low/1 is unused
src/jsx_decoder.erl:692: Warning: function surrogate_to_codepoint/2 is unused
make[3]: *** [all] Error 1
make[3]: Leaving directory `/home/developer/tools/apache-thrift/thrift-0.9.0/lib/erl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/developer/tools/apache-thrift/thrift-0.9.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/developer/tools/apache-thrift/thrift-0.9.0'
make: *** [all] Error 2

任何人都可以帮忙吗? 我正在运行Ubuntu 10.04 LTS,并确保我安装了required libraries

1 个答案:

答案 0 :(得分:1)

答案与我的评论相同。

如果你不需要使用erlang来处理thrift,只需在编译thrift时将其关闭:

./configure --with-erlang=no

可能你在本地机器上搞乱了erlang库,这就是你遇到问题的原因。