libtorrent rasterbar的Python绑定不起作用

libtorrent rasterbar的Python绑定不起作用,python,ubuntu,debian,libtorrent,Python,Ubuntu,Debian,Libtorrent,我正在运行Debian 6.0.6 我已从此处下载了最新版本的libtorrent rasterbar:并安装了它: ./configure --enable-python-binding make make install cd bindings/python python setup.py build python setup.py install 现在我想测试库是否工作: >>> import libtorrent Traceback (most recent call

我正在运行Debian 6.0.6

我已从此处下载了最新版本的libtorrent rasterbar:并安装了它:

./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

搜索共享对象文件并将其添加到路径中

sudo updatedb
locate libtorrent-rasterbar.so.7
这应该输出
//libtorrent rasterbar.so.7

将此添加到您的
~/.profile
中,或临时告诉Python在哪里查找:

export LD_LIBRARY_PATH=/<path_to_directory>/
export-LD\u-LIBRARY\u路径=//

请参阅更详细的安装说明。

libtorrent是否成功构建?看起来libtorrent rasterbar可能没有正确安装(python模块依赖于此)@Arvid make和make安装进行得很好,没有错误,并且找到了libtorrent的许多实例,例如/usr/local/lib/python2.6/dist-packages/libtorrent。那么如何将python指向实际的二进制文件呢?
export LD_LIBRARY_PATH=/<path_to_directory>/