Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to build Boost on Linux

📅 2017-Jan-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ boost, build, unicode ⬩ 📚 Archive

Ubuntu tends to ship an old version of Boost. New versions of the Boost library are released regularly. Thankfully, it is pretty easy to build and use Boost on Linux:

$ sudo apt install libicu-dev
$ ./bootstrap.sh --prefix=boost_output
./bootstrap.sh --prefix=boost_output --with-python=
./bootstrap.sh --prefix=boost_output --with-python=python3
./bootstrap.sh --prefix=boost_output --with-icu=
$ ./b2 install
$ ./b2 install -j 8

Tried with: Boost 1.63.0, GCC 4.8.4 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧