rtorrent 安装

rTorrent 是可以linux文本模式下的BT下载软件,适合用在没有XWINDOW的环境使用 适合在远程终端下操作
支持 UTF-8,文件不会有乱码
0.8.0 版后支持 DHT

如果嫌编译安装麻烦,可以下载已经编译好的RPM包,直接安装即可,  http://blog.45639.com/rtorrent-rpm.html

本文在Redhat AS 5.4安装,同样适用于Centos5

安装篇:
----------------------
先确认是否已经安装以下套件 (等会编译会用到,沒有這些套件无法完成编译)
gcc gcc-c++ ncurses ncurses-devel libtool automake  openssl openssl-devel

如果没有这些套件,可以采用yum来安装

yum install gcc gcc-c++ ncurses ncurses-devel libtool automake  openssl openssl-devel

下载软件:
1.sigc++-2.0
http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.0.tar.gz

2.curl
http://curl.haxx.se/download/curl-7.19.7.tar.gz

3.xmlrpc-c
http://sourceforge.net/projects/xmlrpc-c/files/   (进入下载最新版)

4.libtorrent
http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz

5.rtorrent
http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz

安装软件:
----------------------
tar zvxf  libsigc++-2.2.0.tar.gz
cd libsigc++-2.2.0
./configure --prefix=/usr
make
make install

tar zvxf  curl-7.19.7.tar.gz
cd curl-7.19.7
./configure --prefix=/usr
make
make install

tar zvxf libtorrent-0.12.6.tar.gz
cd libtorrent-0.12.6
./autogen.sh
./configure --prefix=/usr
注:此时可能会出现 No package 'sigc++-2.0' found   错误。
可以添加一个环境变量解决
vi /etc/profile
在后面加入 export PKG_CONFIG_PATH=/usr/lib/pkgconfig
. /etc/profile
即可解决
make
make install

then mv -f ".deps/block.Tpo" ".deps/block.Plo"; else rm -f ".deps/block.Tpo"; exit 1; fi
../../../libtool: line 827: X--tag=CXX: command not found
../../../libtool: line 860: libtool: ignoring unknown tag : command not found
../../../libtool: line 827: X--mode=compile: command not found
../../../libtool: line 993: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../libtool: line 994: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../libtool: line 1137: Xg++: command not found
../../../libtool: line 1137: X-DHAVE_CONFIG_H: command not found
../../../libtool: line 1137: X-I.: command not found
../../../libtool: line 1137: X-I.: command not found
../../../libtool: line 1137: X-I../../..: No such file or directory
../../../libtool: line 1137: X-I.: command not found
../../../libtool: line 1137: X-I./..: No such file or directory
../../../libtool: line 1137: X-I./../..: No such file or directory
../../../libtool: line 1137: X-I../../..: No such file or directory
../../../libtool: line 1137: X-g: command not found
../../../libtool: line 1137: X-O2: command not found
../../../libtool: line 1137: X-g: command not found
../../../libtool: line 1137: X-DDEBUG: command not found
../../../libtool: line 1137: X-fvisibility=hidden: command not found
../../../libtool: line 1137: X-I/usr/kerberos/include: No such file or directory
../../../libtool: line 1137: X-I/usr/include/sigc++-2.0: No such file or directory
../../../libtool: line 1137: X-I/usr/lib/sigc++-2.0/include: No such file or directory
../../../libtool: line 1137: X-MT: command not found
../../../libtool: line 1137: Xblock.lo: command not found
../../../libtool: line 1137: X-MD: command not found
../../../libtool: line 1137: X-MP: command not found
../../../libtool: line 1137: X-MF: command not found
../../../libtool: line 1137: X.deps/block.Tpo: No such file or directory
../../../libtool: line 1137: X-c: command not found
../../../libtool: line 1189: Xblock.lo: command not found
../../../libtool: line 1194: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [block.lo] Error 1

安装过程可能会出现这个错误,把安装目录内的 libtool 文件里的 $echo 替换成 $ECHO  ,重新编译,即可通过。

tar zvxf xmlrpc-c-1.06.38.gz
cd xmlrpc-c-1.06.38
./configure --disable-cplusplus
make
make install

tar zvxf rtorrent-0.8.6.tar.gz
cd rtorrent-0.8.6
./configure --prefix=/usr --with-xmlrpc-c
make
make install

到此安装已经完成,测试是否成功?
# rtorrent

如果出现 rtorrent: error while loading shared libraries: libtorrent.so.11: cannot open shared object file: No such file or directory 错误信息
修改/etc/ld.so.conf
增加行
/usr/lib
/usr/local/lib

保存后再执行
ldconfig

如果出现rtorrent 的界面就表示已经成功

按 <Ctrl> + <q> 退出

rTorrent 设置篇:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值