2

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)
4

1 に答える 1

5

共有オブジェクト ファイルを検索し、パスに追加します。

sudo updatedb
locate libtorrent-rasterbar.so.7

これは出力する必要があります/<path_to_directory>/libtorrent-rasterbar.so.7

これをあなたに追加する~/.profileか、一時的にPythonにどこを見るかを伝えます:

export LD_LIBRARY_PATH=/<path_to_directory>/

詳細なインストール手順については、こちらを参照してください。

于 2013-03-28T01:48:24.243 に答える