Install latest libboost and libraries in Ubuntu 18.04?

Ubuntu 18.04 comes with libboost1.65-dev. Thankfully, I am able to upgrade libboost (to version 1.69 or 1.70) using PPAs. However, these PPAs do not come with latest boost libraries such as chrono, atomic, math, etc. How do I install libboost1.69 along with libboost-math1.69 and other boost libraries in Ubuntu 18.04?

3

1 Answer

Unzip the source:

./bootstrap.sh --prefix=/usr && ./b2 stage threading=multi link=shared

Now, as the root user:

./b2 install threading=multi link=shared && ln -svf detail/sha1.hpp /usr/include/boost/uuid/sha1.hpp

Instructions can be found from here.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like