下载

官网: https://www.boost.org

  1. wget https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.gz

编译安装

  1. tar xf boost_1_71_0.tar.gz
  2. ./bootstrap.sh --prefix=/usr/local/boost
  3. ./bz install

PS: 编译需要C++X11,默认的gcc-4.4.7不行,需要先升级GCC(推荐4.8.5)