1、tar -zxvf boost_1_43_0.tar.gz
2、cd boost_1_43_0,
执行:
sudo ./bootstrap.sh
sudo ./bjam install
检验安装成功否:在linux下任意目录下创建test.cpp
#include<iostream>
#include<boost/lexical_cast.hpp>
int main()
{
int a = boost::lexical_cast<int>("123456");
std::cout << a <<std::endl;
return 0;
}