Install Boost in Ubuntu

Go to directory and Use wget to download the Boost 1.69 source code: cd /usr/local/src sudo wget -O boost_1_69_0.tar.gz https://archives.boost.io/release/1.69.0/source/boost_1_69_0.tar.gz To verify the integrity of the downloaded file, check its size: ls -lh boost_1_69_0.tar.gz The correct file size should be around 116 MB. Extract the Archive sudo tar -xvzf boost_1_69_0.tar.gz cd boost_1_69_0/ Boost's bootstrap setup: ./bootstrap.sh --prefix=/usr/ Then build it with: ./b2

Mar 19, 2025 - 12:51
 0
Install Boost in Ubuntu

Go to directory and Use wget to download the Boost 1.69 source code:

cd /usr/local/src

sudo wget -O boost_1_69_0.tar.gz 

https://archives.boost.io/release/1.69.0/source/boost_1_69_0.tar.gz

To verify the integrity of the downloaded file, check its size:

ls -lh boost_1_69_0.tar.gz

The correct file size should be around 116 MB.

Extract the Archive

sudo tar -xvzf boost_1_69_0.tar.gz

cd boost_1_69_0/

Boost's bootstrap setup:

./bootstrap.sh --prefix=/usr/

Then build it with:

./b2