欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

boost 下载与安装

程序员文章站 2022-05-31 22:20:10
...
wget http://sourceforge.net/projects/boost/files/boost/1.51.0/boost_1_51_0.tar.gz

tar -zxf boost_1_51_0.tar.gz ./

cd boost_1_51_0/

./bootstrap.sh

./b2 install

打开/etc/profile,添加以下内容:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/boost/lib
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/boost/lib
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/boost/include
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/boost/include
source /etc/profile
相关标签: boost