I tried to install rtorrent but ran into some slight problems. It took me a few mins to figure it out but thought I’d post it just in case someone might need the help.
I’m installing it on a minimal CentOS 5 install.
First some basics.
First make sure python is installed which I had. Also make sure there’s a compiler (gcc) is installed. Next download the 2 files rtorrent and libtorrent.
I install it in /usr rather then leave it default because redhat binaries are put in /usr/bin rather then /usr/local/bin and I just want to keep it all in the same place.
cd libtorrent-0.12.2 ./configure --prefix=/usr
First I run into an error with openssl being missing. I do have openssl installed but this is a typical problem. What is needed is the devel package.
yum install openssl-devel
Next was the ’sigc++-2.0′ error.
Resolved that by installing the DAG repo.
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm yum install libsigc*
Next was this error
checking signedness of mincore parameter... configure: error: failed, do *not* attempt fix this with --disable-mincore unless you are running Win32.
This one was tricky for me. Looking at the config.log located in the libtorrent-0.12.2 folder gave me a hint. I see
configure:23341: g++ -c -O2 -Wall -g -DDEBUG -I/usr/kerberos/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include conftest.cpp >&5 ./configure: line 23342: g++: command not found
Solution was to install
yum install gcc-c++
The rest of the errors I ran into was ncurses and curl which just basically required the devel packages installed.
yum install ncurses-devel yum install curl-devel
Now lets see how really good rtorrent is on commandline.
