我尝试在 py3.4 virtualenv中安装libtorrent和 Python 绑定:
./configure --enable-python-binding \
--with-boost-libdir=/usr/lib/x86_64-linux-gnu/ \
LDFLAGS="-L/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/" \
--with-boost-python=boost_python-py34 \
--prefix=/pyenvs/p3 \
--with-boost-random=libboost_random
但是有这个错误
In [1]: import libtorrent
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-ce6253f809d8> in <module>()
----> 1 import libtorrent
ImportError: /usr/lib/x86_64-linux-gnu/libtorrent-rasterbar.so.9: undefined symbol: _ZN5boost6random13random_deviceD1Ev
我已经libboost1.55-all-dev
安装在 Ubuntu 14.04 上。
什么(确切地)会导致这个错误?