1.可能需要预先安装相关项:
yum -y install gcc-c++ python-devel bzip2-devel zlib-devel
2. 从官网下载:
wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz
3. 解压:
tar zxvf boost_1_68_0.tar.gz
4. 进入解压后的目录boost_1_68_0,执行:
sudo ./bootstrap.sh --prefix=/usr/local/boost
5. 安装:
sudo ./b2 install
6. 安装Boost.Build
(1) 进入boost_1_68_0目录下的tools/build目录,执行:
sudo ./bootstrap.sh
(2) 安装
sudo ./b2 install --prefix=/usr/local/boost