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
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.
ReplyDeleteHey, 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:
Delete/opt/boost_1_57_0
afterwards I did the ldconfig but still can't get the correct boost version.