【发布时间】:2010-06-09 20:11:48
【问题描述】:
我下载了最新版本的 Boost,我正在尝试在 Ubuntu 10.04 上启动并运行 Boost.python 教程:http://www.boost.org/doc/libs/1_43_0/libs/python/doc/tutorial/doc/html/python/hello.html
我导航到正确的目录,运行“bjam”并使用默认设置进行编译。我还没有创建 bjam 配置文件。编译似乎已经奏效,但现在我不知道如何在我的 python 脚本中包含这些文件。当我尝试运行 python hello world 脚本时,它给了我这个错误:
Traceback (most recent call last):
File "./hello.py", line 6, in <module>
import hello_ext
ImportError: libboost_python.so.1.43.0: cannot open shared object file: No such file or directory
有人知道怎么回事吗?
【问题讨论】:
标签: c++ python boost-python