3

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?

2
  • Did you try the get the boost version you want example ? Dec 11, 2016 at 3:58
  • I take it that upgrading to 16.10 is not an option?
    – fkraiem
    Dec 11, 2016 at 7:22

1 Answer 1

6

To get the latest go to boost on SourceForge, then:

  1. Download and extract with tar -xf boost_X_XX_X.tar.gz where XX is the version number, like tar -xf boost_1_62_0.tar.gz.

  2. cd boost_X_XX_X

  3. Get required libraries:

     sudo apt-get update && sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev libboost-all-dev
    
  4. Build with: ./bootstrap.sh --prefix=/usr/local

  5. Install 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.

3
  • Thanks, I tried this method, it will install the version1.58 in required libraries libboost-all-dev, The libboost 1.58 comes with Ubuntu 16.04 system, so I re-build a ubuntu 16.10 version. Thanks for you help
    – Gao Yuze
    Dec 12, 2016 at 1:17
  • 1
    It seems that sudo apt-get install libboost-all-dev still installs the most recent version of boost for the current Ubuntu version (boost 1.54 for Ubuntu 14.04), while the whole purpose of the above instruction is to install a newer version... How do I overcome this? Mar 11, 2019 at 12:17
  • Great answer! Worked for me. Mar 1, 2020 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .