2014-11-22 96 views
1

上Lubuntu安装libtorrent 14.04 64位,当我尝试安装德libtorrent库我得到这个配置错误:误差与升压

checking for boostlib >= 1.35... yes 
checking whether the Boost::System library is available... yes 
checking for exit in -l/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/... no 
checking for exit in -lboost_system-/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/... no 
configure: error: Could not link against boost_system-/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/ ! 

我执行这样的:

[email protected]:~/trabajo/libtorrent-rasterbar-0.14.7$ ./configure --with-boost-system=/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi 

有这目录上的文件:

[email protected]:~/trabajo/libtorrent-rasterbar-0.14.7$ ls /usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/ 
error_code.o libboost_system.so.1.57.0 

我对静态库没有太多的想法,有人可以帮我 请?谢谢。

回答

1

的参数--with升压系统或者取:

  1. 库名的后缀(如吨,其中一些发行版使用)
  2. 的完整路径,包括库名

您没有使用库名称传递完整路径,因此configure脚本将其解释为(1),并且无法链接该库。相反,尝试:

./configure --with-boost-system=/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/libboost_system.so 
+0

我试过了,结果是完全一样的,无论如何谢谢。 – 2014-11-23 10:48:59

+0

你仍然得到这个输出的错误? “boost_system-/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi /” – Arvid 2014-11-24 07:52:06

+0

是的,这是输出:在-lboost_system-/usr/local /boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/libboost_system.so.1.57.0 ...否 configure:error:无法链接到boost_system-/usr/local/boost_1_57_0/bin.v2/libs/system/build/gcc-4.8/release/threading-multi/libboost_system.so.1.57.0! – 2014-11-24 13:41:01