Skip to content

Instantly share code, notes, and snippets.

@cloverstd
Last active April 10, 2021 13:51
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save cloverstd/a83bef9c2571685212aab1da79c79bd2 to your computer and use it in GitHub Desktop.
Save cloverstd/a83bef9c2571685212aab1da79c79bd2 to your computer and use it in GitHub Desktop.
install libtorrent and python binds on centos 7
yum install -y boost boost-devel
yum install -y make gcc gcc-c++ kernel-devel python-devel
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_10/libtorrent-rasterbar-1.0.10.tar.gz
tar zxvf libtorrent-rasterbar-1.0.10.tar.gz
cd libtorrent-rasterbar-1.0.10.tar.gz
./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding
make && make install
export LD_LIBRARY_PATH=/usr/local/lib/
cd bindings/python
python setup.py build
python setup.py install
# https://coderwall.com/p/muvnow/installing-libtorrent-on-linux
# http://www.zedt.eu/tech/linux/compiling-libtorrent-rasterbar-and-qbittorrent-on-centos-6-5-x64/
@v1ckdesigns
Copy link

cd libtorrent-rasterbar-1.0.10.tar.gz

should be:
cd libtorrent-rasterbar-1.0.10

@fastesol
Copy link

fastesol commented Aug 5, 2017

for each session I have to first run the following command export LD_LIBRARY_PATH=/usr/local/lib/
else it gives an error ImportError: libtorrent-rasterbar.so.8: cannot open shared object file: No such file or directory

@thesues
Copy link

thesues commented Aug 24, 2017

I use this:
./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding --prefix=/usr

this will install libtorrents library to /usr/lib/ insdead of /usr/local/lib

@krystian-broniszewski
Copy link

everythink is working! thanx ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment