在我的 ubuntu 服务器上安装 rtorrent

在我的 ubuntu 服务器上安装 rtorrent

我正在尝试在我的 ubuntu 服务器上安装 rtorrent。

我运行了这些命令并且它们运行良好。

./autogen.sh
./configure --with-xmlrpc-c 
make

然后当我尝试使用时,make install我猜测它没有安装,因为.rtorrent.rc'主目录中没有创建并且运行rtorrent返回此错误,rtorrent: error while loading shared libraries: libtorrent.so.11: cannot open shared object file: No such file or directory下面是我安装的日志。

root@ubuntu:~/rtorrent-0.8.6# make install
Making install in doc
make[1]: Entering directory `/root/rtorrent-0.8.6/doc'
make[2]: Entering directory `/root/rtorrent-0.8.6/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 './rtorrent.1' '/usr/local/share/man/man1/rtorrent.1                                            '
make[2]: Leaving directory `/root/rtorrent-0.8.6/doc'
make[1]: Leaving directory `/root/rtorrent-0.8.6/doc'
Making install in src
make[1]: Entering directory `/root/rtorrent-0.8.6/src'
Making install in core
make[2]: Entering directory `/root/rtorrent-0.8.6/src/core'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/core'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/core'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/core'
Making install in display
make[2]: Entering directory `/root/rtorrent-0.8.6/src/display'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/display'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/display'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/display'
Making install in input
make[2]: Entering directory `/root/rtorrent-0.8.6/src/input'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/input'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/input'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/input'
Making install in rpc
make[2]: Entering directory `/root/rtorrent-0.8.6/src/rpc'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/rpc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/rpc'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/rpc'
Making install in ui
make[2]: Entering directory `/root/rtorrent-0.8.6/src/ui'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/ui'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/ui'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/ui'
Making install in utils
make[2]: Entering directory `/root/rtorrent-0.8.6/src/utils'
make[3]: Entering directory `/root/rtorrent-0.8.6/src/utils'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src/utils'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src/utils'
make[2]: Entering directory `/root/rtorrent-0.8.6/src'
make[3]: Entering directory `/root/rtorrent-0.8.6/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c 'rtorrent' '/usr/loc                                            al/bin/rtorrent'
libtool: install: /usr/bin/install -c rtorrent /usr/local/bin/rtorrent
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rtorrent-0.8.6/src'
make[2]: Leaving directory `/root/rtorrent-0.8.6/src'
make[1]: Leaving directory `/root/rtorrent-0.8.6/src'
make[1]: Entering directory `/root/rtorrent-0.8.6'
make[2]: Entering directory `/root/rtorrent-0.8.6'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/rtorrent-0.8.6'
make[1]: Leaving directory `/root/rtorrent-0.8.6'

谢谢。

答案1

sudo apt-get 安装 rtorrents -y

答案2

如果由于某种原因你不需要最新版本(例如你遇到了后来修复的一个错误,或者需要更新的功能),那么最简单的方法是确保存储库universe已启用,以便你可以安装这个包使用相关的 GUI 工具或aptitude install rtorrent命令行。这样,所有依赖项都会为您排序。

答案3

尝试运行此命令:LD_LIBRARY_PATH=/usr/local/lib rtorrent

如果有效,则将以下内容放入 .bashrc 中 export LD_LIBRARY_PATH="/usr/local/lib"

这样您就可以输入“rtorrent”

答案4

您已经编译/安装了 libtorrent,对吗?http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz

您可能缺少依赖项。

执行 apt-get 这些然后重试:

sudo apt-get install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl3-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev

相关内容