简体   繁体   English

Apache Thrift编译错误

[英]Apache Thrift compilation error

I am trying to build apache thrift from source. 我正在尝试从源头上构建Apache Thrift。 After executing ./configure (which doesn't give any errors). 执行./configure (不会出现任何错误)。 However, when I execute make I get the following error: 但是,当我执行make时,出现以下错误:

/bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -Wall -g -O2 -L/usr/lib  -o Benchmark Benchmark.o libtestgencpp.la -lssl -lcrypto -lrt -lpthread 
libtool: link: cannot find the library `RPC/thrift-0.9.1/lib/cpp/libthrift.la' or unhandled argument `RPC/thrift-0.9.1/lib/cpp/libthrift.la'
make[4]: *** [Benchmark] Error 1
make[4]: Leaving directory `/home/user/Documents/thrift-0.9.1/lib/cpp/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/Documents/thrift-0.9.1/lib/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/Documents/thrift-0.9.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Documents/thrift-0.9.1'
make: *** [all] Error 2

Does anyone have any idea why this error occurs and how do I fix it? 有谁知道为什么会发生此错误,如何解决?

Have you resolved this? 你解决了吗? I am currently successfully building the tarball of 0.93 on Ubuntu trusty (14.04) on x86 and arm architectures. 我目前正在x86和arm架构上的Ubuntu trusty(14.04)上成功构建0.93的压缩包。

I would suggest trying the 0.93 tarball, and using cmake instead of ./configure (as that's worked better for me). 我建议尝试使用0.93 tarball,并使用cmake代替./configure(因为对我来说效果更好)。 Your mileage may vary, of course. 当然,您的里程可能会有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM