http://markus.revti.com/2009/11/installing-libtorrent-and-rtorrent-on-linux-centos/
As requested by one of my blog reader, I write this libTorrent and rTorrent installation tutorial :) I’m installing libTorrent and rTorrent on a Xen based VPS with Linux Centos 5.4
From the project’s website:
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.
To install libTorrent and rTorrent first we install the compiler and dependencies required
1
|
yum
install
gcc
gcc
-
c
++
m4
make
automake
libtool
pkgconfig
perl
openssl
-
devel
ncurses
-
devel
|
Download curl, libsigc++, libtorrent and rtorrent
1
2
3
4
|
wget
http
:
/
/
curl
.haxx
.se
/
download
/
curl
-
7.19.7.tar.gz
wget
http
:
/
/
ftp
.gnome
.org
/
pub
/
GNOME
/
sources
/
libsigc
++
/
2.2
/
libsigc
++
-
2.2.4.tar.gz
wget
http
:
/
/
libtorrent
.rakshasa
.no
/
downloads
/
libtorrent
-
0.12.5.tar.gz
wget
http
:
/
/
libtorrent
.rakshasa
.no
/
downloads
/
rtorrent
-
0.8.5.tar.gz
|
Extract curl, libsigc++, libtorrent and rtorrent
1
2
3
4
|
tar
-
xvzf
curl
-
7.19.7.tar.gz
tar
-
xvzf
libsigc
++
-
2.2.4.tar.gz
tar
-
xvzf
libtorrent
-
0.12.5.tar.gz
tar
-
xvzf
rtorrent
-
0.8.5.tar.gz
|
Compile curl
1
2
3
4
|
cd
curl
-
7.19.7
.
/
configure
make
make
install
|
Compile libsigc++
1
2
3
4
|
cd
libsigc
++
-
2.2.4
.
/
configure
make
make
install
|
Compile libtorrent
1
2
3
4
5
6
7
|
export
PKG_CONFIG_PATH
=
/
usr
/
local
/
lib
/
pkgconfig
cd
libtorrent
-
0.12.5
rm
-
f
scripts
/
{
libtool
,
lt
*
}
.m4
.
/
autogen
.sh
.
/
configure
make
make
install
|
Compile rtorrent
1
2
3
4
5
6
|
cd
rtorrent
-
0.8.5
rm
-
f
scripts
/
{
libtool
,
lt
*
}
.m4
.
/
autogen
.sh
.
/
configure
make
make
install
|
Download rtorrent sample configuration and rename it
1
2
|
wget
http
:
/
/
libtorrent
.rakshasa
.no
/
export
/
1105
/
trunk
/
rtorrent
/
doc
/
rtorrent
.rc
mv
rtorrent
.rc
.rtorrent
.rc
|
You have to modify the content of .rtorrent.rc file to configure the settings of rTorrent as you needed and place the file into your user directory.
To download from torrent we need the .torrent file, for example to download Centos 5.4 DVD installation I run the command:
1
|
rtorrent
http
:
/
/
ftp
.nluug
.nl
/
ftp
/
pub
/
os
/
Linux
/
distr
/
CentOS
/
5.4
/
isos
/
i386
/
CentOS
-
5.4
-
i386
-
bin
-
DVD
.torrent
|