Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Boost

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the Boost installation package:
    tar xvf boost-1.70.0.tar.bz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd boost-boost-1.70.0
  4. Because TopHat requires only the thread and system libraries of Boost, Bootstrap only needs to contain the two libraries. Run the following command to specify the Boost installation path:
    ./bootstrap.sh --with-libraries=system,thread --prefix=/path/to/BOOST --with-toolset=gcc
  5. Run the following command to perform the compilation and installation:
    ./b2 -d+2 -q -j 32 threading=multi link=shared variant=release --prefix=/path/to/BOOST install
  6. Run the following command to load environment variables:
    export LD_LIBRARY_PATH=/path/to/BOOST/lib:$LD_LIBRARY_PATH