Debian 6.0.6 を実行しています
ここから libtorrent-rasterbar の最新バージョンをダウンロードしました: http://code.google.com/p/libtorrent/downloads/detail?name=libtorrent-rasterbar-0.16.6.tar.gz&can=2そしてそれをインストールしました:
./configure --enable-python-binding
make
make install
cd bindings/python
python setup.py build
python setup.py install
次に、ライブラリが機能するかどうかをテストします。
>>> import libtorrent
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libtorrent-rasterbar.so.7: cannot open shared object file: No such file or directory
ディストリビューションのレポジトリにある libtorrent のパッケージ バージョンには、おかしな動作 (boost の依存関係に文句を言う) があったため、アップグレードすることにしました。私の両方のdebianボックスで同じ状況ですが、ubuntuボックスは問題ありません。
私のdebianボックスからの古いエラーメッセージ:
File "ar.py", line 15, in create
s.start_dht()
Boost.Python.ArgumentError: Python argument types in
session.start_dht(session)
did not match C++ signature:
start_dht(libtorrent::session {lvalue}, libtorrent::entry)