#!/usr/bin/env bash
install-boost.sh: Download Boost (version 1.65.1), build from source, install, and clean-up. Tested on Ubuntu. Dependencies:
- build-essential
- echo
- rm
- tar
- wget
$> wget https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.gz
$> extract boost_1_78_0.tar.gz
$> cd ./boost_1_78_0
$> ./bootstrap.sh --show-libraries # /bootstrap.sh --prefix=/home/hroland/developpements/logslibs/ --show-libraries
$> ./b2 toolset=gcc cxxflags=-std=gnu++17
$> ./b2 install --prefix=/usr
$> echo "export BOOST_ROOT=/usr/include/boost" >> ~/.profile
$> cd ../
$> rm -rf boost_1_78_0 && rm -rf boost_1_78_0.tar.gz
https://www.boost.org/doc/libs/1_78_0/more/getting_started/unix-variants.html