To install Boost.Build from an official release or a nightly build, as available on the official web site, follow these steps:
- Unpack the release. On the command line, go to the root of the unpacked tree.
- Run either .\bootstrap.bat (on Windows), or ./bootstrap.sh (on other operating systems).
- Run
./b2 install --prefix=
wherePREFIXPREFIXis a directory where you want Boost.Build to be installed. - Optionally, add
to yourPREFIX/binPATHenvironment variable.
If you are not using a Boost.Build package, but rather the version bundled with the Boost C++ Libraries, the above commands should be run in the tools/build/v2 directory.
Now that Boost.Build is installed, you can try some of the examples. Copy to a different directory, then change to that directory and run:PREFIX/share/boost-build/examples/hello
PREFIX/bin/b2
A simple executable should be built.
本文介绍如何从官方发布的版本或夜间构建版安装Boost.Build。步骤包括解压文件、运行bootstrap脚本及使用b2命令进行安装。若使用的是捆绑在Boost C++ Libraries中的版本,则需在特定目录下执行命令。
2933

被折叠的 条评论
为什么被折叠?



