cd ~ # wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.7z wget https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.7z
2. 解压
1 2
# 7z x boost_1_76_0.7z 7z x boost_1_78_0.7z
3. 编译和安装 b2
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# use /usr to avoid setting PATH INSTALL_DIR=/usr
# cd boost_1_76_0 cd boost_1_78_0 # if you have multiple compilers # ./bootstrap.sh --cxx=clang++ ./bootstrap.sh --with-python-version=3.7 cd tools/build cp ../../b2 ./ apt install bison -y ./b2 install --prefix=$INSTALL_DIR cd ../../ cp ./project-config.jam $HOME/user-config.jam