下载 boost下载 安装 # 后缀为版本号 cd ./boost_1_73_0 # 准备工作 ./bootstrap.sh # 编译,过程很长 ./b2 # 安装 sudo ./b2 install 将生成的库文件放在 /usr/local/lib 头文件放在/usr/local/include