1. 下载源代码包,这里采用deluge-0.5.9.1.tar.gz
2. 解压缩文件
$ tar -xzvf deluge-0.5.9.1.tar.gz
3. 解压之后可以看到有一个README文件,这里面详细说明了安装步骤,务必要保证一下依赖关系(事实上Fedora 11上已经全部安装了,只要你在安装Fedora时选了Programming相关包):
g++
make
python-all-dev
python-all version >= 2.4
python-dbus
python-gnome2-extras
python-gtk2 version >= 2.9
python-notify
python-pyopenssl
librsvg2-common
python-xdg
python-support
libboost-dev >= 1.33.1
libboost-thread-dev
libboost-date-time-dev
libboost-filesystem-dev
libboost-serialization-dev
libssl-dev
zlib1g-dev
4. 编译,这里采用pytho文件安装方式,在解压缩出来的文件根目录下(此目录包含了setup.py文件)输入:
$ python setup.py build #这一步相当于make
这时候会出现以下编译错误:
error: sscanf is not declared in the scope
libtorrent/src/identify_client.cpp:131: : error: ‘sscanf’ was not declared in this scope
解决办法:修改./libtorrent/src/identify_client.cpp文件,在文件头中加入以下语句:
#include <stdio.h>
再次输入上述命令,还会出现一处编译错误:
./libtorrent/include/libtorrent/disk_io_thread.hpp:135:
error: condition’ in namespace ‘boost’ does not name a type
m_signal was not declared int this scope
解决办法(感谢胖锅):修改 ./libtorrent/include/libtorrent/disk_io_thread.hpp 文件,在文件头中加入以下语句:
#include <boost/thread/condition.hpp>
此时再次编译,通过!
5. 安装,输入以下命令,没有任何问题,顺利安装:
$ python setup.py install #相当于make install
6. 访问安装完毕,可以通过Application->Internet->Deluge打开。