Skip to content

Instantly share code, notes, and snippets.

@Stoner19
Last active September 6, 2019 18:24
Show Gist options
  • Save Stoner19/216dc3b7117d3847c95d1d6bfa00fe3a to your computer and use it in GitHub Desktop.
Save Stoner19/216dc3b7117d3847c95d1d6bfa00fe3a to your computer and use it in GitHub Desktop.
Update fork from master

uninstall dpkg

sudo apt --purge remove libboost-dev sudo apt --purge remove libboost-all-dev sudo apt --purge autoremove libboost-all-dev

to uninstall the version which we installed from source

sudo rm -rf /usr/lib/libboost_* sudo rm -rf /usr/include/boost

wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz

tar -xzvf boost_1_68_0.tar.gz cd boost_1_68_0

./bootstrap.sh

sudo ./b2 install -j4

Add the Boost libraries path to the default Ubuntu library search path

sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/boost.conf'

Update the default Ubuntu library search paths

sudo ldconfig

cat /usr/local/include/boost/version.hpp | grep "BOOST_LIB_VERSION"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment