【发布时间】:2020-10-17 13:36:44
【问题描述】:
我正在尝试从源代码安装 rtorrent,但在编译时出现错误。我正在开发一个新的 Ubuntu 20.04 虚拟机。
libtorrent 安装
sudo apt update
sudo apt upgrade -y
sudo apt install build-essential zip net-tools zlib1g-dev libssl-dev pkg-config libncurses-dev libncursesw5-dev libcppunit-dev autoconf automake libtool libcurl4-openssl-dev -y
cd /tmp
wget http://rtorrent.net/downloads/libtorrent-0.13.8.tar.gz
tar -zxvf libtorrent-0.13.8.tar.gz
cd libtorrent-0.13.8
bash autogen.sh
./configure
make -j 6
sudo make install
rtorrent 安装
cd /tmp
git clone https://github.com/rakshasa/rtorrent.git
cd rtorrent/
./autogen.sh
./configure
make -j 6
但是我得到一个错误。我在 google 上找不到任何有趣的东西。
/usr/local/include/torrent/poll.h:43:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
#include expects "FILENAME" or <FILENAME>
你可以找到所有的错误信息here on pastebin
有什么想法吗? 我忘记安装依赖了吗?
【问题讨论】: