#下载地址:http://www.boost.org
#
tar zxvf boost_1_68_0.tar.gz
cd boost_1_68_0
#-with-libraries可以指定安装哪些库,如附录
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2 toolset=gcc
./b2 install --prefix=/usr/local/boost-1.68.0/
ln -sf /usr/local/boost-1.68.0 /usr/local/boost
ln -sf /usr/local/boost/include /usr/include/boost
cat > /etc/ld.so.conf.d/boost.conf<<EOF
/usr/local/boost/lib
EOF
ldconfig -v
ldconfig -p |grep boost
[Centos7]安装编译安装boost库
未经允许不得转载:笨笨天地 » [Centos7]安装编译安装boost库
相关推荐
- 暂无文章