[英]Boost.Python installation failing with bjam errors
我一直在努力使Boost.Python运行。
我正在按照http://www.boost.org/doc/libs/1_41_0/libs/python/doc/building.html中提到的步骤进行操作。 我遵循第3.1节的步骤2。 Bjam司机让我头疼。 因此,如文档中所述,我遵循http://www.boost.org/doc/libs/1_41_0/more/getting_started/windows.html#or-simplified-build-from-source的第5节中概述的步骤。
尝试5.2节会给我以下错误:
C:\Program Files (x86)\boost\boost_1_50>.\bootstrap
Building Boost.Build engine
The system cannot find the path specified.
'.\build.bat' is not recognized as an internal or external command,
operable program or batch file.
Failed to build Boost.Build engine.
Please consult bootstrap.log for furter diagnostics.
You can try to obtain a prebuilt binary from
http://sf.net/project/showfiles.php?group_id=7586&package_id=7294
1个
因此,由于此尝试失败,因此我尝试采用5.3中概述的步骤。 我下载了一个Jam zip文件。 然后构建了jam.exe可执行文件,然后将bjam exe添加到PATH环境变量中。 所以现在尝试这样做
bjam --build-dir =构建目录工具集=工具集名称--build-type =完成阶段
即
C:\\ Program Files(x86)\\ boost \\ boost_1_50> bjam --build-dir =“ C:\\ build-boost”工具t = msvc --build-type = complete阶段
失败,并显示以下错误...。
C:\Program Files (x86)\boost\boost_1_50>bjam --build-dir="C:\build-boost" toolse
t=msvc --build-type=complete stage
Unable to load Boost.Build: could not find build system.
---------------------------------------------------------
C:\Program Files (x86)\boost\boost_1_50\boost-build.jam attempted to load the bu
ild system by invoking
'boost-build tools/build/v2 ;'
but we were unable to find "bootstrap.jam" in the specified directory
or in BOOST_BUILD_PATH (searching C:\Program Files (x86)\boost\boost_1_50\tools/
build/v2).
Please consult the documentation at 'http://www.boost.org'.
C:\Program Files (x86)\boost\boost_1_50>
现在目录工具/ build / v2在我的boost主目录中不存在。所以我重新下载了boost捆绑包并重复了所有步骤。 仍然没有成功。 现在我不知道该怎么办..
我想获得在libs / python / example / quickstart /下的boost安装下给出的示例并运行。
有人可以协助安装吗?
编辑::
如我所见,boost-build.jam文件包含以下条目
BOOST_BUILD?= tools / build / v2;
但是我没有这个工具目录? boost目录结构是否已更改。 ? 我应该在Boost安装中期待一个“工具”目录吗? 我找不到文件“ bootstrap.jam”吗?
好的,所以我找出了问题所在。 我从BoostPro而不是Boost.org下载boost的配置文件。 好吧,因为我是一个新手,直到使我受重伤之前我才意识到这一点。 我在Boost.org上查看了官方的boost文档,很明显有些差异。 太好了,现在:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.