##### <u style="color:red">此文档的环境是Linux发行版Debian9.9的换环境下</u>
--: 作者:陈章起
##### 下载boost
[boost](https://www.boost.org/) 官方网进行下载
##### 编译安装boost
源代码源代码目录下执行
```
./bootstrap.sh --with-libraries=all --with-toolset=gcc
--with-libraries 指定要编译boost库,all全部编译,其他","隔开
--with-toolset 指定编译编译器或者编译器版本
```
命令执行后如下提示说明无异常
```
Bootstrapping is done. To build, run:
./b2
To generate header files, run:
./b2 headers
To adjust configuration, edit 'project-config.jam'.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/build/
```
##### 按照提示编译它
```
./b2
```
b2有很多参数,可以执行help参数查看其他参数.
```
./b2 --help 查看帮助
```
##### 在帮助中可以看到,执行如下命令进行安装
```
./b2 install
--prefix=/your/install/path 指定自定义安装目录
```
##### 执行动态链接库管理命令
```
ldconfig
```