Skip to content

Instantly share code, notes, and snippets.

@Tsuk1ko
Forked from cloverstd/install.sh
Last active April 4, 2019 15:19
Show Gist options
  • Save Tsuk1ko/cbd31b842d22cb05f1884965d4848331 to your computer and use it in GitHub Desktop.
Save Tsuk1ko/cbd31b842d22cb05f1884965d4848331 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_11/libtorrent-rasterbar-1.0.11.tar.gz
tar zxvf libtorrent-rasterbar-1.0.11.tar.gz
cd libtorrent-rasterbar-1.0.11
./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding
make && make install
cd bindings/python
python setup.py build
python setup.py install
echo "export LD_LIBRARY_PATH=/usr/local/lib/" >> /etc/profile
source /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment