0

我正在从 libtorrent 的 /bindings/python 目录运行以下构建命令

./bjam boost=system link=static address-model=32 toolset=darwin architecture=x86 release

但我收到以下错误

/opt/local/include/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
/opt/local/include/boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory
/opt/local/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
/opt/local/include/boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory

最终导致

...failed darwin.compile.c++ bin/darwin-4.2.1/release/address-model-32/architecture-x86/link-static/src/module.o..

谁能指出我在哪里搞砸了?

4

1 回答 1

1

愚蠢的问题:你安装了python吗?如果您确实安装了它,但不是在标准位置,您必须告诉 bjam 在哪里可以找到它。

哦,boost 是用 python 支持构建的吗?

于 2013-08-24T13:39:45.563 回答