bjam:无法加载 Boost.Build:找不到“boost-build.jam”

mua*_*aaz 5 shell boost centos7

运行bjam命令时,我总是出现以下错误。我知道我缺少设置 env 变量之类的东西,但不确定这些 env 变量的准确值应该是多少。您的帮助将不胜感激。

Unable to load Boost.Build: could not find "boost-build.jam"
---------------------------------------------------------------
Attempted search from /tmp/libtorrent/libtorrent-rasterbar-1.1.4 up to the root
at /usr/share/boost-build
and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /tmp/libtorrent/libtorrent-rasterbar-1.1.4/build-aux/.
Please consult the documentation at 'http://www.boost.org'.
Run Code Online (Sandbox Code Playgroud)

Sam*_*ail 0

您需要构建 bjam,通常可以在以下位置找到:boost/boost_x_xx_x/tools/jam/src但是是在运行boost/boost_X_XX_X/bootstrap.sh.

boost/boost_X_XX_X/bootstrap.sh --with-bjam尽管这是自动构建的,但您可以通过在引导程序上指定来强制它构建。