2015-02-05 44 views
1

这是我做的:1。 下载升压1.57.0 BZ2文件 2.它untar到本地目录 3. cd boost_1_57_0/libs/python/example/quickstart 4.文件命令,指示,在turtorial:bjam toolset=gcc --verbose-test test 5.遇到错误:升压1.57.0 Python的例子不会建

$ bjam toolset=gcc --verbose-test test 

Unable to load Boost.Build: could not find build system. --------------------------------------------------------- /home/XXX/tmp/boost_1_57_0/libs/python/example/quickstart/boost-build.jam attempted to load the build 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 /home/XXX/tmp/boost_1_57_0/libs/python/example/quickstart/../../../../tools/build/v2 , /usr/share/boost-build).

Please consult the documentation at http://www.boost.org .

我做了什么错?

回答

1

Boost Build目录布局在最近的版本中发生了变化,但Boost Python快速入门示例没有更新以反映这一点。

你应该改变升压build.jam中文件的快速入门例子说:

boost-build ../../../../tools/build/src ; 

代替:

boost-build ../../../../tools/build/v2 ;