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
yum install gcc gcc-c++ m4 make automake libtool pkgconfig perl openssl-devel ncurses-devel
Download curl, libsigc++, libtorrent and rtorrent
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
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
cd curl-7.19.7 ./configure make make install
Compile libsigc++
cd libsigc++-2.2.4 ./configure make make install
Compile libtorrent
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
cd rtorrent-0.8.5 rm -f scripts/{libtool,lt*}.m4 ./autogen.sh ./configure make make install
Download rtorrent sample configuration and rename it
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:
rtorrent http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5.4/isos/i386/CentOS-5.4-i386-bin-DVD.torrent

The screenshot of rTorrent downloading file
Related Article
Sideblog 
- Mozilla Released Thunderbird 3 9 December 2009
The long waited open source email client Thunderbird 3 is now released! Upgrading from Thunderbird 2 to Thunderbird 3 is very easy and almost automatically. Once you finished installing version 3, you. […] - Microsoft Wireless Comfort Desktop 5000 Keyboard and Mouse 22 October 2009
The Microsoft Wireless Comfort Desktop 5000 has been designed to enhance your Windows 7 experience. You can easily access programs in the task bar with convenient hot keys. Applications in the taskbar. […] - WooFunction: 178 Amazing Web Design Icons 28 September 2009
The WooFunction Icon Set includes 178 amazing web-related icons in a sophisticated and glossy design style. All 178 icons are available as 32×32 pixel PNG files and we can assure you that they are in. […] - Moblin the Next Generation OS for Netbook 27 September 2009
Moblin is an open source project that supports Linux-based software platform and is optimized for the next generation of mobile devices including netbooks, mobile Internet devices (MIDs), in-vehicle i. […] - Twitterify Your Wordpress Blog Using P2 Theme 21 September 2009
Twitter is becoming more and more popular due to its requirement as micro blogging is not much, only 140 characters that even less than a text message limit which is 160 characters. Blogger that is no. […]

December 10th, 2009 - 10:18
Nice one. They really need to fix whatever is culpable of the Time Out problem w/ rtorrent off of rpmforge. The sad part is this is the second time in a year I’ve had to troubleshoot problems w/ rtorrent from rpmforge but your quick checklist was accurate on a copy paste level and painless. Thanks again.
December 10th, 2009 - 22:43
EDIT: it’s libcurl that is responsible and not the rtorrent package or rpmforge. Also, your url has helped another person out from the #rtorrent channel on freenode and someone said they were adding your guide to the wiki. Thanks again.
December 10th, 2009 - 22:50
Hi Mike,
I’m happy to be able to help the community
December 14th, 2009 - 04:33
Hi Markus, quick question do the downloaded source and installs of libsigc++ and curl-7.19.7 break CentOS dependencies (i know CentOS has a old version of curl that causes tracker connection errors).
Please excuse my lack of knowledge i am new to dealing with dependencies, how can we make sure the rtorrent only uses our custom curl-7.19.7 and not the system ones (older version 7.15.2)?
Many thanks.
December 14th, 2009 - 16:06
It could be, the version that is installed by Centos’ YUM is curl-7.15.5-2.1.el5_3.5 which is quite old. if there are another softwares in your Centos that using curl too then that software might have some problem.
anyway, you can define the location where you want to install the newest curl, for example:
./configure –prefix=/path/to/curl/tree
I’ll test this kind of installation, i’ll let you know the result.
December 14th, 2009 - 17:14
I checked again, the requirement of rtorrent is libcurl >= 7.15.4 so the one that installed by YUM should be enough to compile rtorrent.
if you still have 7.15.2, you should do ‘yum update’
December 15th, 2009 - 04:12
have a look here: http://markus.revti.com/2009/12/install-rtorrent-using-curl-in-different-path-on-centos-linux/
let me know if there is problem
December 22nd, 2009 - 02:57
Superb, many thanks. Have replied on your other thread. Cheers, Chris
December 24th, 2009 - 13:02
THANK YOU THANK YOU THANK YOU THANK YOU!!!
I was banging my head all day trying to get rtorrent to work on my centos box, and this finally did the trick! Damn Centos and it’s always “just too out of date to work” packages