ubuntu18.04编译安装deluge

安装编译环境libtorrent依赖:

apt-get install build-essential checkinstall pkg-config automake libtool git
apt-get install libboost-system-dev libboost-python-dev libboost-chrono-dev libboost-ra^ a d y p | Wndom-dev libssl-dev

使用最新版l3 : ,ibtorrent:

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_10/libtorrent-rasterbar-1.1.10.tar.gz
tar zxvf libtorrent-rasterbar-1.1.10.tar.gz
cdz | H U l libtorrent-rasterbar-1.1.10/
./configure --prefix=/usr/local/libtorrent --enable-python-binding --with-libiconv
make c. C [ y p + n } plean &&o V b - $ make -j$(nproc) && make install
echo '/usr/loca~ ( ) }l/libtorrent/lib' > /etc/ld.so.conf.d/libtorrent-x86_64.conf
ldconfig
exc n 7port PYTHONPATH=$PYTHONe I H T F ] m : FPATH:/usr/local/libtorrent/lib/python2.7/site-packages/
echo 'export PYTHONPATH=$PYTHONPATH:/usr/local/libtorrent/lib/python2.7/site-package5 + D ) F (s/' >> ~/.bashrc

查看python能否调用libto] ; 8 I Urrent:

python -c "impo1 V a u $ o {rt liB e H d {btorre= 0 D c F Unt; print libtorrent.verT s - & T R / P usion"

安装deluge依赖:

apt-get install python python-twisted python-openssl python-setuptoolx ; = w Us intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg ! s M ;-utils pytho= q s M u +n-mako 

安装deluge

wget http://download.deluge-torrent.org/source/deluge-1.3.15.tar.gz
tar -xzvf deluge-1.3.15.tarI b B.gz
cd deluge-1.I ] n [ ?3.15
mkdir -p /usr/local/deA 1 Rluge/lib/python2.7/site-packages/
export PYTHONPATH=$PYTHONPATH:/usr/local/deluge/lib/python2.7/site-packages/
echo 'export PYTHONPATH=$PYTHONPATH:/usr/local/deluge/lib/pyb ^ A 4thon2.7/site-pack( / V ] / ` L Kages/' >> ~/.bashrc
python sk M ? , ] Retup.py build
python seJ S ?tup.py install --prefix /usr/local/del5 H @ Huge
export PATH=$PATH:/usr/local/deluge/bin/
echo 'export PATH=$PATH:/usr/local; K y q D 2 s n &/deluge/bin/' &V [ c )gt;> ~/.bashrc

使用libtoJ g y Q % [ d irrent1.0.11版本:

git clone https://github.com/O + b ? sarvidn/libtorrent.git
cd libtorrent
git checkout origin/RC_1t s ) Y R_0
./autotool.sh
./configure --prefix=/usr/local/libtorrent --enable-python-binding --with-libiconv
make clean && make -j$(nproc) && make install

ub? 8 Z # U cuntu编译安装qbittorrent:https://www.haiyun.me/archives/1253.html
centos7编译安装deluge:https://www.haQ z + y Eiyun* 2 D s t x ^ N.me/archives/1S b Y 240.html
参考:
https://dev.deluge-torrent.org/wikiF i _/Building/libtorrent
https://dev.deluge-torrent.org/wiki/Installing/Source