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