Install rTorrent Using CURL in Different Path on Centos Linux

After I posted an article titled “Installing libTorrent and rTorrent on Linux Centos” one of my reader have a concern about dependencies as Centos already have older Curl installed by default.

One way to avoid dependencies problem with Curl is by compiling the newest version to another directory and then compile rTorrent to use that Curl installation and not the old Curl installed by default on Centos. Below is the step-by-step how to install rTorrent with Curl installed in another directory:

Download curl, libsigc++, libtorrent and rtorrent

Extract curl, libsigc++, libtorrent and rtorrent

Compile Curl in /opt/curl

Compile libsigc++ in /opt/libsigc

Compile libTorrent

Compile rTorrent using our compiled curl

Download rtorrent sample configuration and rename it

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.

To download from torrent we need the .torrent file, for example to download Centos 5.4 DVD installation I run the command:

The screenshot of rTorrent downloading file
The screenshot of rTorrent downloading file

7 thoughts on “Install rTorrent Using CURL in Different Path on Centos Linux”

  1. Hi Markus, thanks for the reply and second how-to!! It’s great and working fine. I have learnt so much already, out of curiosity would it be possible to statically link the libaries when building rtorrent? This way i only need to copy the rtorrent executable without needing to copy libaries if i distrbute rtorrent to another centos box… more out of interest really to see how its done! Many thanks, Chris.

  2. In the compile libtorrent script shouldn’t it be

    export PKG_CONFIG_PATH=/usr/lib/pkgconfig


    Otherwise libsigc++ wont be found.

    1. indeed there are files in /usr/lib/pkgconfig, but if i set PKG_CONFIG_PATH to /usr/lib/pkgconfig, I got error message when compiling rtorrent that said the configure script couldn’t find libtorrent installation.

      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

      fix this problem.

  3. Using CentOS 5, couldn’t get rtorrent to talk to trackers without the updated CURL and I couldn’t figure out how to tell rtorrent I had it. Your suggestion worked perfectly, connecting to everything now :)

    [quote]/configure libcurl_CFLAGS=-I/opt/curl/include libcurl_LIBS=’-L/opt/curl/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz'[/quote]

Leave a Reply

Your email address will not be published. Required fields are marked *