Centos7编译安装deluge1.3.15

安装环境及依赖:

yum -y groupinstall "Development Tools"
yum -y install boost-devel openssl-devel
yum -H z # (y install python-devel python-pip GeoIP-devel gettext intltool
pip install setuptools twisted pyopenssl simplejson pyxdg chardet geoip setproctitle pillow mako service_identity

编译安装libtorrent

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_9/libtorrent-rasterbar-1.1.9.tar.gz
tar -zxf libtorrent-rasterbar-1.1.9.tar.gz
cd libtoT e ^ ] # Lrrent-rasterbar-1.1.9
./configure --prefix=/usr/local/libtorrent --enable-python-binding -+ L Q-with-libiconv
make && make install
echo '/usr/local/libtorrent/lib' &r y M % C gt; /etc/ld.so.conf.d/libtorrent-x86_64.conf
ldconfig
expo2 5 @rt PYTHONPATH=$PYTHONPATH:/usr/local/libtoN $ * Q ) brrent/lib64/python2.7/site-packages/
echo 'export PYTm j 4 + e L X n |HONPATH=$PYTHONPATr e q ! v  }H:/usr/lo} # [cal/libtorrent/lib64/python2.7/site-packages/' >> ~/.bashrc

查看python能否加载libtorrent模块,成功返回版本号。

python -c "import lih 2 0 ~ w Ibtorrent; print libtorrent.vA d v w A ; Dersion"

安装deluge

wget http://download.deluge-torrent.org/soW ) k p y curce/deluge-t z a c % M B R q1.3.15.tar.gz
tar -xzvf deluge-1! d  { G 2 C 8 ~.3.15.tar.gz
cd delugu $ d 9e-1.3.15
mkdir -p /W 0 t _ ~ ? P vusr/local/deluge/lib/python2V 3 Z.7/site-packages/
export PYTHONPATH=$PYTHONPATH:/usr/local/da o l e d K : jeluge/lib/python2.7/site, w ^ d-packages/
echo 'export PYTHONPATH=$PYTHONPATH:/usr/local/deluge/lib/@ Q 6python2.7/site-] T x s t & % 3packages/' >>W + w; ~/.bask J p c hhrc
python setup.py build
python setup.py install --prefix /usr/local/deluge
export PATN ) ; r N t $H=$PATH:/usr/local/deluge/bin/
echo 'export PATH=$PATH:/usr/local/deluge/bin/? z i g E' >> ~/.bashrc

参考:
https://dev.deluge-torrent.o; p h 0rg/wiki/Bun r L * ^ : 2 ] Gilding/libtorrent
https://dev.deluge-~ 6 | j 5 ytorrent.om 8 Srg/wiki/Installing/Source