Installing libTorrent, rTorrent and a rutorrent front-end on Linux Centos


step 1:
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 mod_ssl openssl-devel apache2 php php-cli screen subversion


step 2:
Download XMLRPC-C, curl, libsigc++, libtorrent and rtorrent
cd /tmp
svn checkout http://xmlrpc-c.svn.sourceforge.net/...mlrpc-c/stable xmlrpc-c
wget http://curl.hax******download/curl-7.19.7.tar.gz
wget http://ftp.gnome.org/pub/GNOME/sourc...+-2.2.4.tar.gz
wget http://libtorrent.rakshasa.no/downlo...-0.12.6.tar.gz
wget http://libtorrent.rakshasa.no/downlo...t-0.8.6.tar.gz


step 3:
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.6.tar.gz
tar -xvzf rtorrent-0.8.6.tar.gz


step 4:
Compile curl
cd curl-7.19.7
./configure
make
make install
cd ..


step 5:
Compile libsigc++
cd libsigc++-2.2.4
./configure
make
make install
cd..


step 6:
Compile libtorrent
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
cd libtorrent-0.12.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
make install
cd ..


step 7:
Compile XMLRPC-C
cd xmlrpc-c
./configure
make
make install
cd..
This installed xmlrpc-c-config to /usr/local/bin/xmlrpc-c-config


step 8:
Compile rtorrent
cd rtorrent-0.8.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure --with-xmlrpc-c=/usr/local/bin/xmlrpc-c-config
make
make install
cd ~


step 9:
Download rtorrent sample configuration and rename it
wget http://libtorrent.rakshasa.no/export...oc/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.

make sure to add the line
scgi_port = 127.0.0.1:5000


step 10:
Get rutorrent
cd /var/www/
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent
needed plugin for connecting rutorrent to rtorrent
cd /var/www/rutorrent/plugins
svn co http://rutorrent.googlecode.com/svn/trunk/plugins/rpc


step 11 :
Start rtorrent
screen rtorrent
we use screen because we have to keep rtorrent running after we close the terminal


Now you can open your new rutorrent seedbox just go to http://myserverip/rutorrent