ubuntu - 构建 apache thrift 时出错

标签 ubuntu build makefile thrift thrift-protocol

我试图在我的 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

最佳答案

答案和我的评论一样。

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

./configure --with-erlang=no

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

关于ubuntu - 构建 apache thrift 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18183348/

相关文章:

networking - 网络启动和系统即将关闭时的 Ubuntu Upstart 事件

android - 错误 :Execution failed for task ':app:compileDebugKotlin' . > 编译错误。有关详细信息,请参阅日志

c - 具有自动目标创建功能的潜在大型项目的 Makefile

linux - Makefile 通配符问题

makefile - 使用 GNU-make 函数检查是否定义了变量

ruby-on-rails - 我无法更改或添加任何内容,sudo 无法正常工作...sudo : can't open/etc/sudoers: Permission denied

ubuntu - 无法在 OCaml 中加载 LLVM 绑定(bind)

ubuntu - 如何使用串行UART清除minicom终端的屏幕

ios - Xcode 变得很慢,我无法再使用实际设备(模拟器没问题)

build - 使用外部库的tensorflow新操作