我尝试在我的Ubuntu服务器上安装rtorrent。
我运行这些命令,他们工作得很好。
./autogen.sh ./configure --with-xmlrpc-c make
然后当我试图使用make install我想它没有得到安装,因为没有.rtorrent.rc'在主目录中创build并运行rtorrent返回此错误rtorrent: error while loading shared libraries: libtorrent.so.11: cannot open shared object file: No such file or directory是我的make install的日志。
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'
谢谢。
sudo apt-get install rtorrents -y
如果由于某种原因不需要最新版本(例如,稍后修复了一个错误,或者需要更新的function),那么最简单的方法是确保universe存储库已启用,以便您可以安装此软件包与相关的GUI工具或从命令行aptitude install rtorrent 。 这样所有的依赖关系将被分类。
尝试运行这个:LD_LIBRARY_PATH = / usr / local / lib rtorrent
如果可行,那么在你的.bashrc中input以下内容LD_LIBRARY_PATH =“/ usr / local / lib”
这将允许你input“rtorrent”
只要尝试一下,它为我工作:
apt-get install rtorrent sudo apt-get install apache2 php5 php5-cli php5-curl apt-get install php-xml-rss sudo apt-get install libapache2-mod-scgi ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
创build以下目录结构
sudo mkdir /home/USERNAME/rtorrent/download sudo mkdir /home/USERNAME/rtorrent/session sudo mkdir /home/USERNAME/rtorrent/watch sudo mkdir /home/USERNAME/rtorrent/download cp /usr/share/doc/rtorrent/examples/rtorrent.rc /home/ubix/.rtorrent.rc shud copy .rtorrent.rc to users home directory
编辑以下参数并取消注释所有行以适应您的configuration
directory = /home/USERNAME/rtorrent/download session = /home/USERNAME/rtorrent/session schedule = watch_directory,5,5,load_start=/home/USERNAME/rtorrent/watch/*.torrent bind = 127.0.0.1 port_range = pick a port range scgi_port = localhost:5000
将rutorrent.tar.gz复制到/var/www/
通过tar xvf rutorrent
chown -R www-data:www-data /var/www/rutorrent sudo htpasswd -c /var/www/rutorrent/.htpasswd
在</virtualhost>之前的/etc/apache2/sites-enabled/default添加以下行
SCGIMount /RPC2 127.0.0.1:5000 <location /var/www/rutorrent> AuthName "rTorrent secure access" AuthType Basic AuthBasicProvider file AuthUserFile /var/www/rutorrent/.htpasswd Require user ubix </location>
导航到用户的主目录,该目录运行.rtorrent.rc文件所在的torrent。
在terminal运行守护进程
rtorrent
打开浏览器input:
http://<yourserverip>/rutorrent
你完成了!
你已经编译/安装libtorrent,对吧? http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz
你很可能缺less依赖关系。
阿普 – 得到这些,然后再试一次:
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
可能需要先编译libtorrent?
如果你坚持从源代码而不是从源代码构buildrtorrent,则需要确保安装了所有的依赖关系。 最简单的方法是
sudo apt-get build-dep rtorrent
这应该会消除你所有的依赖问题,只要你正在构build的新版本不需要任何更新的版本或者不在版本库中的附加包。
试试这个,它为我工作
apt-get install rtorrent
sudo apt-get install apache2 php5 php5-cli php5-curl
apt-get安装php-xml-rss
sudo apt-get install libapache2-mod-scgi ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
创build以下目录结构
sudo mkdir / home / USERNAME / rtorrent /下载
sudo mkdir / home / USERNAME / rtorrent / session
sudo mkdir / home / USERNAME / rtorrent / watch
sudo mkdir / home / USERNAME / rtorrent /下载
cp /usr/share/doc/rtorrent/examples/rtorrent.rc /home/ubix/.rtorrent.rc shud复制.rtorrent.rc到用户主目录
编辑以下参数并取消注释所有行以适应您的configuration
目录= / home / USERNAME / rtorrent /下载会话= / home / USERNAME / rtorrent / session schedule = watch_directory,5,5,load_start = / home / USERNAME / rtorrent / watch / *。torrent bind = 127.0.0.1 port_range = pick一个端口范围scgi_port = localhost:5000
将rutorrent.tar.gz复制到/ var / www /
通过tar xvf rutorrent解压缩
chown -R www-data:www-data / var / www / rutorrent
sudo htpasswd -c /var/www/rutorrent/.htpasswd
在/ etc / apache2 / sites-enabled / default之前添加以下行
SCGIMount / RPC2 127.0.0.1:5000 AuthName“rTorrent安全访问”AuthType基本AuthBasicProvider文件AuthUserFile /var/www/rutorrent/.htpasswd要求用户ubix
导航到用户的主目录,其中包含.rtorrent.rc文件所在的torrent
在terminal运行守护进程
rtorrent的
打开浏览器input
HTTP:// yourserverip / rutorrent
你做的!
当您安装rtorrent时,您必须在您的主目录中创build您自己的.rtorrent.rc文件。 你可以在这里find一个例子.rtorrent.rc文件