How to install libboost_version1.59 or newer on Ubuntu16.04
Matthew Harrington
How can I install libboost1.59 ?
I have tried many methods to install it, but fail to update the version 1.58 on my Ubuntu 16.04 to the version 1.59.
I tried this and this on StackOverflow, this on linuxfromscratch.org and this blog post
Who can give me an effective method?
21 Answer
To get the latest go to boost on SourceForge, then:
Download and extract with
tar -xf boost_X_XX_X.tar.gzwhere XX is the version number, liketar -xf boost_1_62_0.tar.gz.cd boost_X_XX_XGet required libraries:
sudo apt-get update && sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev libboost-all-devBuild with:
./bootstrap.sh --prefix=/usr/localInstall with:
sudo ./b2 install
Please note you can also get the version currently on your version of Ubuntu can be gotten at the libboost-dev package page on UbuntuUpdates.