下载安装boost_1.67 https://www.boost.org/users/history/version_1_67_0.html
下载解压之后 cd boost_1_67_0
复制文件配置HOME目录下
`cp /path/to/boost_1_64_0/tools/build/example/user-config.jam $HOME`
修改使用的python编译环境
# $HOME/user-config.jam
`using python : 3.6 :
/opt/anaconda3/envs/py3.6.5/bin/python3:
/opt/anaconda3/envs/py3.6.5/include/python3.6m :
/opt/anaconda3/envs/py3.6.5/lib/python3.6 ;`
可以使用以下命令来验证jam的配置是否正确
`b2 --debug-configuration`
初始化
`./bootstrap.sh --with-libraries=all --with-toolset=gcc --prefix=/usr/local`
开始编译, pthon 路径指向anaconda3中的python3.6.5
`./b2 --with-python include="/opt/anaconda3/envs/py3.6.5/include/python3.6m"`
编译成功之后执行安装
./b2 install
安装完成之后的目录