2023年3月

备注:环境Debian/Ubuntu

编译安装

# 编译前的准备
sudo apt install g++ cmake curl wget gcc gdb

# 下载并开始编译
wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz
tar -zxvf boost_1_81_0.tar.gz
cd boost_1_81_0/
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2 toolset=gcc

# 查看有什么错误信息
./b2 -q 

# 安装到指定位置
./b2 install --prefix=/opt/boost1.81

安装后的测试

​ 占位,留到后面添加