Installing boost on RHEL/CentOS 8

Some quick commands to install boost with some typical libraries….

mkdir -p ~/src
cd ~/src
wget https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz
tar xf boost_1_75_0.tar.gz
cd boost_1_75_0
./bootstrap.sh \
  --libdir=/usr/local/lib64 \
  --with-libraries=system,thread,test,chrono,regex,date_time,filesystem,locale,random,atomic,log,program_options,exception
./b2 -j 8
sudo ./b2 install

Leave a Comment