1. download boost sourcecode 1.54.0 (wget https://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz/download)
2.install bzip2-devel (ubuntu可以略去此步骤)
2.1 sudo yum whatprovides */bzlib.h
2.2 sudo yum install bzip2-devel-1.0.5-7.el6_0.x86_64
3. compile bjam
./bootstrap.sh --prefix=/home/alex/boost
4.
./bjam install (ubuntu可能要加上:cxxflags="-std=c++11")
5. edit /etc/ld.so.conf (可以忽略)
add /home/alex/boost/lib at the end of ld.so.conf, then run ldconfig
6. when compile projects using boost, add the path /home/alex/boost/include and /home/alex/boost/lib</span>
centos x64系统下的boost编译和使用
最新推荐文章于 2024-04-21 11:01:12 发布
本文详细介绍了如何下载并安装Boost1.54.0版本的源代码,包括必要的依赖安装、编译配置及环境变量设置等关键步骤。
599

被折叠的 条评论
为什么被折叠?



