Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Boost

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Upload the Boost source package to the /path/to/BOOST directory.
  3. Decompress the Boost installation package.
    cd /path/to/BOOST
    tar -xvf boost_1_58_0.tar.gz
  4. Go to the directory generated after the decompression.
    cd boost_1_58_0
  5. Modify the Boost source code.
    sed -ri 's/\-m64/\-mabi=lp64/g' `grep -Rl '\-m64'`
  6. Perform the configuration.
    ./bootstrap.sh --prefix=/path/to/BOOST/boost_1_58_0/build --with-libraries=system,filesystem,serialization,program_options --with-toolset=gcc
  7. Perform the compilation and installation.
    ./b2 install
  8. Set the Boost environment variable.
    export LD_LIBRARY_PATH=/pat/to/BOOST/lib:$LD_LIBRARY_PATH