-
Notifications
You must be signed in to change notification settings - Fork 22
Installation guide for libtorrent 1.1.0
Myeonggyun Han edited this page Aug 22, 2016
·
1 revision
This is guide for install libtorrent 1.1.0 (python3 binding)
First, download libtorrent 1.1.0 from https://github.com/arvidn/libtorrent/releases
$ wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1/libtorrent-rasterbar-1.1.0.tar.gz
$ tar xvf libtorrent-rasterbar-1.1.0.tar.gz
$ cd libtorrent-rasterbar-1.1.0
- Install dependency
$ sudo apt-get update
$ sudo apt-get install libboost-chrono-dev libboost-python-dev libboost-random-dev libboost-system-dev libssl-dev python3-dev
- Make configuration
$ ./configure --enable-python-binding PYTHON=`which python3` --with-boost-python=py`python3 -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
If you are using virtualenv, add --prefix=$VIRTUAL_ENV
$ ./configure --enable-python-binding PYTHON=`which python3` --prefix=$VIRTUAL_ENV --with-boost-python=py`python3 -c 'import sys; print("".join(map(str, sys.version_info[:2])))'`
- Make and install the library
$ make
$ make install
If you are using virtualenv, add $VIRTUAL_ENV/lib
to $LD_LIBRARY_PATH
after make install
$ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIRTUAL_ENV/lib' >> $VIRTUAL_ENV/bin/activate
$ source $VIRTUAL_ENV/bin/activate
TODO
TODO
$ python3 -c 'import libtorrent; print(libtorrent.version)'
$ 1.1.0.0