阿里云服务器centos8系统boost的安装和使用1.直接使用yum安装yuminstallboosyuminstallboost-develyuminstallboost-doc2.安装包安装1.去官网boost下载自己想要的安装包2.安装boost依赖包:yum-yinstallgccgcc-c++pythonpython-devellibiculibicu-develzlibzlib-develbzip2bzip2-devel3,复制到系统中tar-zxvfboost_1_78_0.tar.gzcdboost_1_78_0#defaultinstallationsudo./bootstrap.sh#也可以指定安装目录,例如sudo./bootstrap.sh--prefix=/usr/local/include/boost#installboostsudo./b2install4,installboost.buildcd/boost/tools/buildsudo./bootstrap.shsudo./b2install--prefix=/usr/local/include/boostldconfig3.验证1.程序thread.cpp#include
