How to install libtorrent on linux

Installing libtorrent on linux. I use boost (how to install boost) version 1.47.0 so I can’t guarantee it works with any other version (although it probably will).

cd /var
wget libtorrent-rasterbar-0.14.7.tar.gz -O http://sourceforge.net/projects/libtorrent/files/libtorrent/libtorrent-0.14.7/libtorrent-rasterbar-0.14.7.tar.gz/download
tar -zxfv libtorrent-rasterbar-0.14.7.tar.gz
cd libtorrent-rasterbar-0.14.7
CPPFLAGS="-DBOOST_FILESYSTEM_VERSION=2" ./configure
make
make install
ldconfig

Make sure you add CPPFLAGS=”-DBOOST_FILESYSTEM_VERSION=2″ before ./configure or you’re gonna get errors thrown your way.

Leave a Reply

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