DEV Community

Mukit, Ataul
Mukit, Ataul

Posted on

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
Enter fullscreen mode Exit fullscreen mode

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

ls -lh boost_1_69_0.tar.gz
Enter fullscreen mode Exit fullscreen mode

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/

Enter fullscreen mode Exit fullscreen mode

Boost's bootstrap setup:

./bootstrap.sh --prefix=/usr/
Enter fullscreen mode Exit fullscreen mode

Then build it with:

./b2
Enter fullscreen mode Exit fullscreen mode

Top comments (0)