Thursday, July 21, 2011

UPDATE: Install Latest rTorrent and libTorrent on Centos 6

Since I made a post about installing rtorrent on centos 5.6, I thought that I'd do that for Centos 6 as well. Anyway, Centos 6 comes with many updated packages which makes it possible for us to install the latest libTorrent and rTorrent packages (0.12.9 and 0.8.9 at the time of writing) without having to mess with compilation tools and libraries on the system.

First, you should check out the previous tutorial because this one is very concise. You just need to get an idea.

Anyway, after you download the packages, just extract and compile with:
make install

If you get package missing errors. Just install:
yum install cppunit cppunit-devel openssl openssl-devel libsigc++20 libsigc++20-devel ncurses-devel

No need to add EPEL repos because all of the packages we need to compile rtorrent is already in the base repos.

When compiling rTorrent, you'll get an error. It will fail to locate libtorrent, so, just create this environment variable before compiling:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

We now need to copy the configuration file to your home directory. I suggest that you create a user just for rtorrent then change the settings as I mentioned in my other tutorial.
adduser rtorrent
passwd rtorrent
cp doc/rtorrent.rc /home/rtorrent/
cd /home/rtorrent
chown -R rtorrent:rtorrent rtorrent.rc
su -l rtorrent
vi rtorrent.rc
mv rtorrent.rc .rtorrent.rc

You should now be able to use rTorrent. Let me know if this didn't work our for you!

No comments:

Post a Comment