Saturday, February 28, 2015

Ubuntu 14.04: Install boost 1.57

sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2
tar xvjf ./boost_1_57_0.tar.bz2
./bootstrap.sh --prefix=/opt/boost_1_57_0
sudo ./b2
sudo ./b2 install

2 comments:

  1. Anonymous10:41 AM

    In addition append the libraries path to the appropriate configuration file in "/etc/ld.so.conf.d/" then "sudo ldconfig" or reboot for changes to take effect. Without doing this your shared libs may not be found.

    ReplyDelete
    Replies
    1. Hey, I might seem like a newbee but how did you achieved this? I created a boost.conf in the /etc.ld.so.conf.d and added this line there:
      /opt/boost_1_57_0

      afterwards I did the ldconfig but still can't get the correct boost version.

      Delete