In the past, I’ve had different run in’s with installing rtorrent on different linux distro’s. But I eventually found a surefire way to install it on Debian.
Your working directory doesn’t really matter. I would suggest /tmp or your ~. I also recommend not installing this as root. It’s just a bad idea.

FIRST:

sudo apt-get install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev

THEN :

First you need to download latest version of libtorrent. wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz sudo tar xvf libtorrent-0.12.6.tar.gz cd libtorrent-0.12.6 sudo ./configure sudo make sudo make install Then you need to install rtorrent itself: wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz sudo tar xvf rtorrent-0.8.6.tar.gz cd rtorrent-0.8.6 sudo ./configure sudo make sudo make install

If you run into any problems with libraries, use the “ldconfig” command to clean them up.

That’s it your new versions of rtorrent and libtorrent are installed. To run, I suggest creating a screen session using “screen -S rtor” and in that, just run “rtorrent”
NOTE: Edit the .rtorrent.rc file in your home directory (or the home dir of the user you installed it as) and set your options first before starting rtorrent. An example rtorrent.rc file can be found on google.

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.