Linux下boost库的编译及安装

 

001、下载地址

https://www.boost.org/users/download/

 

 

002、

tar -xzvf boost_1_80_0.tar.gz

 

003、 编译安装

cd boost_1_80_0/
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2 install --prefix=/usr

 

004、配置环境变量

vim /etc/profile                               ## 打开环境配置文件, 在该文件最后增加如下两句
export BOOST_PATH="/usr/local/include"
export BOOST_LIBS="/usr/local/lib"

 

source  /etc/profile                      ## source环境变量文件, 使其生效

 

参考:https://blog.csdn.net/wenlan12/article/details/125908408

 

posted @ 2022-09-18 11:42  小鲨鱼2018  阅读(290)  评论(0编辑  收藏  举报