/usr/src
we do not need to create this one, as it should already exist.
# mkdir /usr/src
next, get the sources for libtorrent and rtorrent:
# cd /usr/src
# wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.4.tar.gz
# wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.4.tar.gz
Unpack both archives with
# tar xvzf libtorrent-0.12.4.tar.gz
# tar xzvf rtorrent-0.8.4.tar.gz
If you have already compiled and installed rtorrent before and created the symlinks according to my earlier tutorial, we will need to remove the symlinks and create new ones pointing to the new sources:
# rm rtorrent
# rm libtorrent
# ln -s libtorrent-0.12.4 libtorrent
# ln -s rtorrent-0.8.4 rtorrent
After that, enter the respective directories and run ./autogen.sh, then configure, the make. Before you run make install, make sure you have quit any running instances of rtorrent.
cd to libtorrent, later to rtorrent and run:
# ./autogen.sh
# make
# make install
After the long compiling process we want to make sure, rtorrent is actually working. run rtorrent
# rtorrent
Should you get an error message like this:
error while loading shared libraries: libtorrent.so.11: cannot open shared object file: No such file or directory
Run ldconfig to create and cache the links.
# ldconfig
This should solve the problem.