下载boost
解压
tar -zxvf boost_1_76_0.tar.gz
安装
cd boost_1_76_0
sudo ./bootstrap.sh
sudo ./b2 install
#文件就被默认安装在/usr/local/include头文件下,库文件就被默认安装在/usr/local/lib下
配置环境
vim /etc/ld.so.conf
添加/usr/local/lib
# 退出
sudo ldconfig
2022-11-24 12:48:41
tar -zxvf boost_1_76_0.tar.gz
cd boost_1_76_0
sudo ./bootstrap.sh
sudo ./b2 install
#文件就被默认安装在/usr/local/include头文件下,库文件就被默认安装在/usr/local/lib下
vim /etc/ld.so.conf
添加/usr/local/lib
# 退出
sudo ldconfig