Installing Boost
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the Boost installation package:
tar xvf boost-1.70.0.tar.bz
- Run the following command to switch to the directory generated after the package is decompressed:
cd boost-boost-1.70.0
- 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
- 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
- Run the following command to load environment variables:
export LD_LIBRARY_PATH=/path/to/BOOST/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment