1、基本過程都一樣:
下載boost --> 運行./bootstrap.sh --> 運行./b2 --buildtype=complete install
2、特殊地方:
vm的內存不能太小:我設置爲2g,4g都出現失敗,最後設置8G才編譯成功。
提示的錯誤形如: ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-6.3.0/release/link-st(搜索tag);這之前有提示內存不足等錯誤
b2編譯時,可以去除一部分不需要的庫,比如wave, graph等,使用./b2 --without-wave --without-graph --buildtype=complete install