gpt4 book ai didi

c++ - Apache Thrift 编译错误

转载 作者:太空宇宙 更新时间:2023-11-04 13:53:50 25 4
gpt4 key购买 nike

我正在尝试从源代码构建 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

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

最佳答案

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

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

关于c++ - Apache Thrift 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22419379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com