boost库安装

下面介绍我在docker上安装boost库的步骤

  1. wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz
  2. tar zxvf boost_1_64_0.tar.gz
  3. cd boost_1_64_0
  4. ./bootstrap.sh --with-libraries=all --with-toolset=gcc //--with-libraries指定编译哪些boost库,all的话就是全部编译,只想编译部分库的话就把库的名称写上,之间用 , 号分隔即可
  5. ./b2 toolset=gcc
  6. ./b2 install --prefix=/usr
  7. ldconfig

猜你喜欢

转载自www.cnblogs.com/lthuang/p/12103939.html