1[[bbv2.installation]] 2= Installation 3 4To install B2 from an official release or a nightly build, as 5available on the http://boost.org/boost-build2[official web site], 6follow these steps: 7 81. Unpack the release. On the command line, go to the root of the 9unpacked tree. 102. Run either `.\bootstrap.bat` (on Windows), or `./bootstrap.sh` (on 11other operating systems). 123. Run 13+ 14[source,shell] 15---- 16$ ./b2 install --prefix=PREFIX 17---- 18+ 19where PREFIX is a directory where you want B2 to be installed. 204. Optionally, add `PREFIX/bin` to your PATH environment variable. 21 22If you are not using a B2 package, but rather the version 23bundled with the Boost {CPP} Libraries, the above commands should be run 24in the `tools/build` directory. 25 26Now that B2 is installed, you can try some of the examples. 27Copy `PREFIX/share/boost-build/examples/hello` to a different directory, 28then change to that directory and run: 29 30[source,shell] 31---- 32$ PREFIX/bin/b2 33---- 34 35A simple executable should be built. 36