在终端依次运行如下命令:
wget http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz tar -xzvf boost_1_54_0.tar.gz cd boost_1_54_0 ./bootstrap.sh --prefix=/usr/local ./b2 install --with=all
即可 boost就被安装到/usr/local/lib下