Installing rtorrent / rutorrent on CentOS 5 (i386)

das329717

Member
May 25, 2018
928
0
16
There are many incomplete or outdated guides on how to do this, so here is what I did :

The CentOS install was carried out selecting ‘Base’, Development Libraries’ & ‘Development Tools’

Package Selection
Code:
yum -y install xmlrpc-c xmlrpc-c-devel gcc44 gcc44-c++ screen
Installation
Code:
cd
mkdir rtorrent
cd rtorrent
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz
wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2.3.1.tar.xz
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
You will also require the apache mod_scgi module which is not available from the CentOS repositories
Code:
rpm –ivh http://dl.fedoraproject.org/pub/epel/5/i386/mod_scgi-1.13-1.el5.i386.rpm
You need to use the gcc44 compiler as the stock 4.1.2 will not work
Code:
export CC=gcc44 CXX=g++44 CFLAGS='-pipe -Os -pthread -march=native' CXXFLAGS='-pipe -Os -pthread -march=native' LDFLAGS='-s -lpthread'
export PKG_CONFIG=/usr/bin/pkg-config
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
Compile autoconf
Code :
tar -xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libsigc
Code:
xz -dvf libsigc++-2.3.1.tar.xz
tar -xvf libsigc++-2.3.1.tar
cd libsigc++-2.3.1
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile libtorrent
Code:
tar -xvf libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr
make
make install
cd ..
Compile rtorrent
Code:
tar -xvf rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c
make
make install
ldconfig
cd
cp rtorrent/rtorrent-0.9.3/doc/rtorrent.rc .rtorrent.rc
Create directories for rutorrent and file storage
Code:
cd /var/www/html
wget http://rutorrent.googlecode.com/files/rutorrent-3.5.tar.gz
tar -xvf rutorrent-3.5.tar.gz
cd rutorrent
mkdir download
mkdir .session
mkdir watch
chown -R apache:apache /var/www/html/rutorrent
cd
Modify the .rtorrent.rc configuration file
Code:
echo “scgi_port = 127.0.0.1:5000” >> .rtorrent.rc
You will also need to set the directory locations in the file as well as configuring for your requirements
Code:
# Default directory to save the downloaded torrents.
directory = /var/www/html/rutorrent/download

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /var/www/html/rutorrent/.session

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/var/www/html/rutorrent/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
Install the mod_scgi module for Apache
Code:
echo “SCGIMount /RPC2 127.0.0.1:5000” >> /etc/httpd/conf/httpd.conf
service httpd restart
Start rtorrent
Code:
screen -S rtorrent rtorrent
Issues regarding the .rtorrent.rc settings are at the discretion of the user along with the installation of any rutorrent plugins.

I also renamed the .htaccess file /var/www/html/rutorrent to avoid any security requirements for testing the installation.

I hope this of use to some of you smiley.gif
 

Attachments

peshua19

Member
May 25, 2018
897
0
16
Thanx for the guide smiley.gif

My server responds with:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.23 (CentOS) Server at marvelinc.dyndns.org Port 80

What is the problem, please help
 

Attachments

das329717

Member
May 25, 2018
928
0
16
The first things that I'd check would be the .htaccess files.

If you rename the .htaccess files in /var/www/html and /var/www/html/rutorrent and then restart the webserver daemon, you can chck if the webserver starts correctly.

Code:
service httpd restart
 

simur612

Member
May 25, 2018
879
0
16
I getting error when 'Compile libsigc' on command line 'xz -dvf libsigc++-2.3.1.tar.xz'

I getting this error :

Quote
-bash: xz: command not found​


Please help me. I use Centos 5.3 (Final)
 

das329717

Member
May 25, 2018
928
0
16
It would seem that you haven't got the xz package installed. Simply install it using the following :

Quote
#yum install xz​


Good luck.
 

simur612

Member
May 25, 2018
879
0
16
Thank for your reply.

When i want to compile rtorrent use 'make' command

i get this

Quote
make: *** No targets specified and no makefile found. Stop.​


Thanks for your helping
 

randac56

Member
May 25, 2018
915
0
16
Thank for your reply.

When i want to compile rtorrent use 'make' command

i get this

Quote
make: *** No targets specified and no makefile found. Stop.​


Thanks for your helping
It would seem that you are not in the correct directory as the rtorrent source DOES include a Makefile

Quote
tar -xvf rtorrent-0.9.3.tar.gz
cd rtorrent-0.9.3
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c
make
make install
ldconfig
cd
cp rtorrent/rtorrent-0.9.3/doc/rtorrent.rc .rtorrent.rc​
 

peshua19

Member
May 25, 2018
897
0
16
It would seem that you are not in the correct directory as the rtorrent source DOES include a Makefile

Quote
tar -xvf rtorrent-0.9.3.tar.gz​
cd rtorrent-0.9.3​
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c​
make​
make install​
ldconfig​
cd​
cp rtorrent/rtorrent-0.9.3/doc/rtorrent.rc .rtorrent.rc​
I am also getting same error
 

lisas4567

Member
May 25, 2018
773
0
16
I am also getting same error
Very simply, make looks for a file called makefile or Makefile in the current working directory. If it does not find one, it says:

No targets specified and no makefile found.

You must be in the wrong directory. I suggest you check each step of the instructions clearly.
 

saroos1

Member
May 25, 2018
718
0
16
Very simply, make looks for a file called makefile or Makefile in the current working directory. If it does not find one, it says:

No targets specified and no makefile found.

You must be in the wrong directory. I suggest you check each step of the instructions clearly.
look I firstly unzip or untar rtorrent-0.9.3 and then enter into that directory. Then I used following command to config file
Code:
./configure CC=/usr/bin/gcc44 CXX=/usr/bin/g++44 --prefix=/usr --with-xmlrpc-c
after that i used make command inside the rtorrent-0.9.3 directory which is not at all working.
 

simur612

Member
May 25, 2018
879
0
16
I think there is some error while configure:
Code:
configure: error: requires either NcursesW or Ncurses library
 

randac56

Member
May 25, 2018
915
0
16
I think there is some error while configure:
Code:
configure: error: requires either NcursesW or Ncurses library
Mindfreak,

I have just retested the whole procedure on a new Virtual machine install and everything works as it should. You are not following the instructions.
 

saroos1

Member
May 25, 2018
718
0
16
Due to people reporting problems, I have just run through a complete install on a new Centos 5.9 i386 image download.

Everything works as I documented. The only confusion could possibly be surrounding the initial package selection. The only checked items I included were as follows :-

  • Base System - Base
  • Development - Development Libraries
  • Development - Development Tools
  • Server - Web Server
These will include xz and ncurses, so the problems being reported are because the instructions are not being followed.
 

saroos1

Member
May 25, 2018
718
0
16
No Mate,

I got it for free from my phone operator by signing up the contract with them.

lol

hth0923
 

saroos1

Member
May 25, 2018
718
0
16
this plugin works but i think we need to still buy novik an ipad, even though he doesnt' want one =)



even with this plugin rutorrent is quite awkward to use, mainy due to how scrolling works. If you only have a few torrents running, its no problem but if you are like me with 100 running it's very hard to use.