How ot install rtorrent/rutorrent in Centos 5 ?

shwetha17

Member
May 24, 2018
785
0
16
Hi ever on,

please, Can anyone explain to me How to install rtorrent/rutorrent in Centos ?
i have SSH root.
 

randac56

Member
May 25, 2018
915
0
16
You must have root access on the machine, and svn installed on the machine
install svn:

Code:
yum install mod_dav_svn subversion


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


Code:
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:
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:
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:
cd curl-7.19.7
./configure
make
make install
cd ..



step 5:
Compile libsigc++


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



step 6:
Compile libtorrent


Code:
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:
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:
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:
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:
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:
cd /var/www/
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent

needed plugin for connecting rutorrent to rtorrent


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



step 11 :
Start rtorrent


Code:
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/
 

lisas4567

Member
May 25, 2018
773
0
16
personally i dont' find centos to be the best choice but it should work fine using the standard install method.

skimming this, i dont' see anything wrong with what he's said but if you have issues please let us know
 

jith45

Member
May 25, 2018
960
0
16
Quote :
in the step 2 show me this error

-bash: svn: command not found​


YOu sure you did not forget :

Code:
yum install mod_dav_svn subversion
It's above step 1
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
YOu sure you did not forget :

Code:

yum install mod_dav_svn subversion


It's above step 1​


yes :

Code:
root@server [~]# yum install mod_dav_svn subversion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.leaseweb.com
* base: mirror.leaseweb.com
* extras: mirror.leaseweb.com
* updates: mirror.leaseweb.com
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_dav_svn.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_dav_svn
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Processing Dependency: libapr-1.so.0 for package: subversion
--> Processing Dependency: libaprutil-1.so.0 for package: subversion
--> Running transaction check
---> Package apr.i386 0:1.2.7-11.el5_5.2 set to be updated
---> Package apr-util.i386 0:1.2.7-11.el5_5.1 set to be updated
--> Processing Dependency: libpq.so.4 for package: apr-util
---> Package mod_dav_svn.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_dav_svn
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Running transaction check
---> Package mod_dav_svn.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_dav_svn
---> Package postgresql-libs.i386 0:8.1.21-1.el5_5.1 set to be updated
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: perl(URI) >= 1.17 for package: subversion
--> Finished Dependency Resolution
mod_dav_svn-1.4.2-4.el5_3.1.i386 from base has depsolving problems
--> Missing Dependency: httpd-mmn = 20051115 is needed by package mod_dav_svn-1.4.2-4.el5_3.1.i386 (base)
subversion-1.4.2-4.el5_3.1.i386 from base has depsolving problems
--> Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_dav_svn-1.4.2-4.el5_3.1.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
 

randac56

Member
May 25, 2018
915
0
16
As you can see in your log : you did not install subversion , there are errors

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_dav_svn-1.4.2-4.el5_3.1.i386 (base)

You need to install this before you can install subversion
 

lisas4567

Member
May 25, 2018
773
0
16
wink.gif

Simply installing subversion should be enough: yum install subversion , if you are simply using a standard install of Centos from your host (assuming its Centos 5.4).

I have to agree with wonslung as default Centos install on dedi servers comes with php version 5.1x which isnt really good enough for the latest SVN rutorrent. It simply means that you will not be able to use all the latest plugins as they rely on php5.2+. I have moved over to debian lenny (5.0) which is a lot better and more up to date.

Imho I would personally reimage and install debian lenny and start again, plus remember DO NOT use the latest svn rtorrent, USE the latest stable rtorrent(0.86)!

As wonslung said , don't hesitate to come back here if you need help smiley.gif
 

jith45

Member
May 25, 2018
960
0
16
yah, debian is a really good platform. Most of the packages are stable and apt is a very good package manager.
 

dsouvik215

Member
May 25, 2018
896
0
16
I hope I can get help here as I am using this tut and on

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

step 8:
Compile rtorrent



I am unable to get make to work ?
 

randac56

Member
May 25, 2018
915
0
16
Hi,

I've installed everything to get it work(I installed latest version of all required softwares).

Once I run the rtorrent, I get following error;
Code:
Caught Segmentation fault, dumping stack:
0 rtorrent [0x40d413]
1 rtorrent [0x44d668]
2 /lib64/libc.so.6 [0x7fadcf6fb2d0]
3 /usr/local/lib/libtorrent.so.14 [0x7fadd1169f04]
4 /usr/local/lib/libtorrent.so.14 [0x7fadd1167bdc]
5 /usr/local/lib/libtorrent.so.14(_ZN7torrent10initializeEPNS_4PollE+0xd7) [0x7fadd117b017]
6 rtorrent [0x40e909]
7 /lib64/libc.so.6(__libc_start_main+0xf4) [0x7fadcf6e8994]
8 rtorrent(_ZNK7torrent8FileList14free_diskspaceEv+0x79) [0x40cf69]
GDB Debug result;
Code:
(gdb) exec-file /usr/local/bin/rtorrent
(gdb) run
Starting program: /usr/local/bin/rtorrent
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7067f04 in push (queue=0x7ffff731ba00, item=0x78bd78, t=<value optimized out>)
at /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_heap.h:203
203 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
any idea how to fix this error?
 

dsouvik215

Member
May 25, 2018
896
0
16
Quote
Hi,

I've installed everything to get it work(I installed latest version of all required softwares).

Once I run the rtorrent, I get following error;
Code:
Caught Segmentation fault, dumping stack:
0 rtorrent [0x40d413]
1 rtorrent [0x44d668]
2 /lib64/libc.so.6 [0x7fadcf6fb2d0]
3 /usr/local/lib/libtorrent.so.14 [0x7fadd1169f04]
4 /usr/local/lib/libtorrent.so.14 [0x7fadd1167bdc]
5 /usr/local/lib/libtorrent.so.14(_ZN7torrent10initializeEPNS_4PollE+0xd7) [0x7fadd117b017]
6 rtorrent [0x40e909]
7 /lib64/libc.so.6(__libc_start_main+0xf4) [0x7fadcf6e8994]
8 rtorrent(_ZNK7torrent8FileList14free_diskspaceEv+0x79) [0x40cf69]
GDB Debug result;
Code:
(gdb) exec-file /usr/local/bin/rtorrent
(gdb) run
Starting program: /usr/local/bin/rtorrent
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7067f04 in push (queue=0x7ffff731ba00, item=0x78bd78, t=<value optimized out>)
at /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_heap.h:203
203 std::__push_heap(__first, _DistanceType((__last - __first) - 1),
any idea how to fix this error?​



The latest versions of libtorrent/rtorrent wont work on CentOS, try this guide:

http://sohonetwork.blogspot.com/2010/10/how-to-install-rtorrent-and-rutorrent.html
 

jith45

Member
May 25, 2018
960
0
16
I realise this is quite an old thread, but I have just managed to compile and install rtorrent / libtorrent with xmlrpc-c on CentOS 5.8 i386.

If there is any interest, I made notes and can either post here or send me a PM.
 

shwetha17

Member
May 24, 2018
785
0
16
Quote :
I realise this is quite an old thread, but I have just managed to compile and install rtorrent / libtorrent with xmlrpc-c on CentOS 5.8 i386.

If there is any interest, I made notes and can either post here or send me a PM.​


Make a guide for it maybe? But in the right section here... cool.gif
 

jith45

Member
May 25, 2018
960
0
16
Hi,

I'll make sure that I get rutorrent working as well and will post then (in the right section).

I've now posted my installation guide for an i386 platform and will start testing on x86_64 in the next day or so.