Install Boost 1.64 in Ubuntu 16.04

– Uninstall the current Boost if exist:

$ sudo apt-get –purge remove libboost-dev

$ sudo apt-get –purge remove libboost-all-dev

$ sudo apt-get –purge autoremove libboost-all-dev

– Install Boost in Ubuntu 16.04 from PPA (only up to Boost version 1.55):

$ sudo add-apt-repository ppa:boost-latest/ppa

$ sudo apt-get update

Now you can install the version you desire, the latest at the time of writing is 1.55 (version from 2014, as seen in 2017/07, no newer version available; see more):

$ sudo apt-get install libboost1.55-all-dev

– Install Boost 1.58 from package in Ubuntu 16.04 (latest version inside emmbeded package is only 1.58, while actual latest version is 1.64 – as of 2017/07):

$ sudo apt-get install libboost-dev

$ sudo apt-get install libboost-all-dev

– Install Boost 1.64 from (latest version as of 2017/07):

– Download source file from:

– Put it in a folder (if) you want to, then run the below commands:

$ tar -xzvf boost_1_64_0.tar.gz
$ cd boost_1_64_0
$ ./
$ ./b2

– Verify installed Boost version:

$ dpkg -s libboost-dev | grep Version


$ cat /usr/include/boost/version.hpp | grep “BOOST_LIB_VERSION”

If error or not found: Boost is not installed.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s