【问题标题】:error while building apache thrift构建 apache thrift 时出错
【发布时间】:2013-08-12 09:13:49
【问题描述】:

我尝试在我的 linux 机器上构建(制作)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

【问题讨论】:

  • 曾经在我的机器上编译 thrift 0.9 和 0.8 时遇到了 ruby​​ 的奇怪问题。由于我在节俭安装中不需要 ruby​​,因此我将其关闭:./configure --with-ruby=no。您需要 thrift 的 erlang 支持吗?
  • 不,我不需要 erlang 支持。我用./configure --with-erlang=no 关闭了它,现在它可以工作了:) 非常感谢

标签: ubuntu build makefile thrift thrift-protocol


【解决方案1】:

答案和我的评论一样。

如果您不需要 erlang 来使用 thrift,只需在编译 thrift 时将其关闭即可:

./configure --with-erlang=no

您的本地计算机上的 erlang 库可能有问题,这就是您遇到问题的原因。

【讨论】:

    猜你喜欢
    • 2017-04-12
    • 2015-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-09
    • 1970-01-01
    • 1970-01-01
    • 2020-12-02
    相关资源
    最近更新 更多