1.解壓bootstrap
tar -zxvf boost_1_59_0.tar.gz
2.進入解壓後的目錄boost_1_61_0,執行:ui
sudo ./bootstrap.sh --prefix=/usr/local/include/boost
3.安裝:code
sudo ./b2 install
4.安裝Boost.Buildtools
(1)進入boost_1_61_0目錄下的tools/build目錄,執行:co
sudo ./bootstrap.sh
(2)安裝sudo
sudo ./b2 install --prefix=/usr/local/include/boost