编译rTorrent-0.8.0(debian)

apt-get build-dep xxx #xxx要编译的程序

You might need the following packages to install xmlrpc-c, libtorrent and rtorrent
 

  • make
  • pkg-config
  • sigc++-2.0-dev
  • libncurses-dev
  • libcurl-openssl-dev

下载 source code

         wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.0.tar.gz

         wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.0.tar.gz


[安裝编译工具]

 

aptitude install  build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev

[编译 libtorrent]

cd libtorrent
./autogen.sh
./configure
make
make install

[编译 rtorrent]

cd ../rtorrent
./autogen.sh
./configure
make
make install

[rtorrent.rc 配置文件]

min_peers = 40
max_peers = 250
max_uploads = 15
download_rate = 0
upload_rate = 40
directory = /data/bt/download
session = /data/bt/session
schedule = watch_directory,10,10,load_start=/data/bt/torrent/*.torrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
use_udp_trackers = yes
send_buffer_size = 10M
receive_buffer_size = 20M
dht = auto
dht_port = 6881
encoding_list=GBK

[使用 rtorrent]

 

  • rtorrent
  • 把种子文件放入 /data/bt/torrent/目录自动下载

如安装libtorrent-0.12.6 和rtorrent-0.8.6/出现如下错误
../libtool: line 841: X--tag=CXX: command not found

执行
1) rm -f scripts/{libtool,lt*}.m4
2) ./autogen ; ./configure ; make

上一篇: 用windows版rsync的DeltaCopy轻松备份,恢复文件   下一篇: 断点续传的原理

提交疑问

回顶部