linux - ./configure for libtorrent 在 Linux 上的问题

标签 linux boost installation configure libtorrent

该死,我在安装 libtorrent 时遇到了非常困难的时间,我不确定问题出在哪里。我在网上看到很多类似的错误,但解决方案没有帮助,而且我很确定错误消息太模糊,无法进行比较。

当我运行 ./configure 时,我得到

**

Building libtorrent-rasterbar 0.16.5

Checking for a C/C++ compiler to use:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ understands -c and -o together... yes
.
..
.
Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib

**

然后我使用建议,不同之处在于底部说

**

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
checking for exit in -llib... no
checking for exit in -lboost_system-lib... no
configure: error: Could not link against boost_system-lib !

**

config.log文件有错误

**

configure:16572: result: no
configure:16537: checking for exit in -lboost_system-lib
configure:16562: gcc -o conftest -lpthread -g -O2 -fvisibility=hidden  -I/usr/include  -L/usr/lib conftest.c -lboost_system-lib  -lpthread   >&5
conftest.c:33: warning: conflicting types for built-in function 'exit'
/usr/bin/ld: cannot find -lboost_system-lib
collect2: ld returned 1 exit status

**

任何见解将不胜感激

安装后

apt-get install libboost-system-dev

apt-get install libboost-filesystem-dev libboost-thread-dev

Checking features to be enabled:
checking whether encryption support should be enabled... yes
configure: encryption support: now checking for the OpenSSL library...
checking for pkg-config... /usr/bin/pkg-config
checking for openssl/ssl.h in /usr/local/ssl... no
checking for openssl/ssl.h in /usr/lib/ssl... no
checking for openssl/ssl.h in /usr/ssl... no
checking for openssl/ssl.h in /usr/pkg... no
checking for openssl/ssl.h in /usr/local... no
checking for openssl/ssl.h in /usr... no
checking whether compiling and linking against OpenSSL works... no
configure: error: OpenSSL library not found. Try using --with-openssl=DIR or disabling encryption at all.

最佳答案

您需要安装 libboost-system。

如果您使用的是 Debian/Ubuntu,请按如下方式使用 apt-get。

$ apt-get install libboost-system-dev

您可能还需要安装...

$ apt-get install libboost-filesystem-dev libboost-thread-dev

关于linux - ./configure for libtorrent 在 Linux 上的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13058367/

相关文章:

boost - 使用 boost::program_options 解析前缀参数?

installation - Composer如何指定安装目录

visual-studio-2008 - VS2008 安装工程 : Shared (By All Users) Application Data Files?

linux - 在旧 Linux 版本中构建的应用程序可以在最新 Linux 中运行吗?

c++ - Boost asio ssl:如果私钥通过 context::use_private_key 传递,则不调用密码回调

linux - 从 1.5.8 升级到 1.6.7 后未绑定(bind)速度慢 50%

c++ - 将模板传递给 boost 函数

node.js - npm 从 gitlab 安装模块

linux - 通过公钥 ssh key 登录

php - linux 服务器上的 cakephp 帮助程序文件名大写问题