版權聲明:轉載時請以超鏈接形式標明文章原始出處和作者信息及本聲明http://ralf0131.blogbus.com/logs/50220370.html
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打開。