【问题标题】:Apache Thrift compilation errorApache Thrift 编译错误
【发布时间】:2015-10-26 21:50:26
【问题描述】:

我正在尝试从源代码构建 apache thrift。执行./configure 后(不会给出任何错误)。但是,当我执行 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

有谁知道为什么会出现这个错误以及如何解决它?

【问题讨论】:

  • 你在什么环境下?
  • 但是你做了./configure && make && sudo make install 库,是吗? thrift.apache.org/tutorial
  • 是的。我这样做了。我在make 期间遇到问题。
  • sudo updatedblocate libthrift.la 看看文件是不是放错了目录? (如果您没有 root 访问权限,也可以使用 find / -name libthrift.la 2>/dev/null 执行此操作。

标签: c++ ubuntu build build-process thrift


【解决方案1】:

你解决了吗?我目前正在 x86 和 arm 架构上的 Ubuntu trusty (14.04) 上成功构建 0.93 的 tarball。

我建议尝试 0.93 tarball,并使用 cmake 而不是 ./configure(因为这对我来说效果更好)。当然,您的里程可能会有所不同。

【讨论】:

  • 这应该是评论,而不是答案?
  • 我没有足够的声誉来发表评论,但我可以回答。这对我来说真的没有意义,但我们就是这样。
  • 哦,是的。我感觉到你的痛苦。 Stack Overflow 对低代表的行为非常令人沮丧。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-10-28
  • 1970-01-01
  • 2012-04-14
  • 1970-01-01
  • 1970-01-01
  • 2014-07-23
  • 2012-01-14
相关资源
最近更新 更多