Boost下载安装

下载解压

wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz
tar -zxvf boost_1_72_0.tar.gz

安装

cd boost_1_72_0/
sh ./bootstrap.sh
./b2
sudo ./b2 install --prefix=/usr/local

问题

1.如果出现

error while loading shared libraries: libboost_system.so.1.72.0: cannot open shared object file: No such file or directory

则执行

sudo ldconfig
posted @ 2020-01-02 10:08  曲径通霄  阅读(1319)  评论(0编辑  收藏  举报