【发布时间】: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 updatedb和locate libthrift.la看看文件是不是放错了目录? (如果您没有 root 访问权限,也可以使用find / -name libthrift.la 2>/dev/null执行此操作。
标签: c++ ubuntu build build-process thrift