How ot install rtorrent/rutorrent in Centos 5 ?

You must have root access on the machine, and svn installed on the machine
install svn:

Code: [Select]
yum install mod_dav_svn subversion



step 1:
To install libTorrent and rTorrent first we install the compiler and dependencies required


Code: [Select]
yum install gcc gcc-c++ m4 make automake libtool pkgconfig perl openssl-devel ncurses-devel mod_ssl openssl-devel apache2 php php-cli screen



step 2:
Download XMLRPC-C, curl, libsigc++, libtorrent and rtorrent

Code: [Select]
cd /tmp
svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
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.6.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz




step 3:
Extract curl, libsigc++, libtorrent and rtorrent

Code: [Select]
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


Code: [Select]
cd curl-7.19.7
./configure
make
make install
cd ..




step 5:
Compile libsigc++


Code: [Select]
cd libsigc++-2.2.4
./configure
make
make install
cd ..




step 6:
Compile libtorrent


Code: [Select]
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


Code: [Select]
cd xmlrpc-c
./configure
make
make install
cd ..


This installed xmlrpc-c-config to /usr/local/bin/xmlrpc-c-config

step 8:
Compile rtorrent

Code: [Select]
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


Code: [Select]
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.

make sure to add the line in .rtorrent.rc !



Code: [Select]
scgi_port = 127.0.0.1:5000




step 10:
Get rutorrent (with the correct path ex: /var/www/vhosts/yourdomaine.com/httpdocs/   for plesk)

Code: [Select]
cd /var/www/
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent


needed plugin for connecting rutorrent to rtorrent


Code: [Select]
cd /var/www/rutorrent/plugins
svn co http://rutorrent.googlecode.com/svn/trunk/plugins/rpc




step 11 :
Start rtorrent


Code: [Select]
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

tested and work perfectly for me 

source: http://code.google.com/p/rutorrent/

你可能感兴趣的:(How ot install rtorrent/rutorrent in Centos 5 ?)