Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://dev.deluge-torrent.org/wiki/Building/libtorrent#UbuntuDebian
- Install dependencies for libtorrent build automatically using build-dep:
- sudo apt-get build-dep libtorrent-rasterbar
- sudo apt-get install checkinstall
- OR if that fails manually install them:
- sudo apt-get install build-essential checkinstall libboost-system-dev libboost-python-dev libssl-dev libgeoip-dev
- Download libtorrent (https://github.com/arvidn/libtorrent/releases) and extract:
- tar xf libtorrent-rasterbar.tar.gz
- cd libtorrent-rasterbar
- Configure:
- ./configure --enable-python-binding --with-libgeoip --with-libiconv
- Missing configure script: (e.g. source code from git) create it with ./autotool.sh (requires extra packages: sudo apt-get install autoconf automake libtool).
- Logging: Add --enable-logging=default to get logs in the current working directory. verbose and error can also be used.
- Debug: To create a debug build add --enable-debug=yes.
- Build:
- make -j$(nproc)
- CPU Cores: The make option -j$(nproc) will utilize all available cpu cores.
- Install library and python bindings:
- sudo checkinstall
- sudo ldconfig
- Substituted make install for checkinstall as it creates a deb package for easier removal/re-install by dpkg.
- Running ldconfig avoids an ImportError for libtorrent-rasterbar.so, a result of Python being unable to find the main library.
- Verify libtorrent and the python bindings are installed correctly:
- python -c "import libtorrent; print libtorrent.version"
- >> 1.0.6.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement