资源准备
由于具体安装编译内容很长,所以下面用…来表示
首先得安装gcc,g++,等环境
# yum install gcc g++ bzip2 bzip2-devel bzip2-libs Python-devel -y@H_403_27@
...@H_403_27@
Installed:
bzip2-devel.x86_64 0@H_403_27@:1.0@H_403_27@.5@H_403_27@-7.@H_403_27@el6_0
Complete!
下载boost 源码,解压、编译
# wget http://ufpr.dl.sourceforge.net/project/boost/boost/1.61.0/boost_1_61_0.tar.bz2@H_403_27@
...@H_403_27@
100@H_403_27@%[======================================>] 85@H_403_27@,202@H_403_27@,254@H_403_27@ 354K/s in@H_403_27@ 7m 31s
2016@H_403_27@-07@H_403_27@-05@H_403_27@ 11@H_403_27@:12@H_403_27@:45@H_403_27@ (184@H_403_27@ KB/s) - 已保存 “boost_1_61_0.tar.bz2” [85202254@H_403_27@/85202254@H_403_27@])
# tar jxvf boost_1_61_0.tar.bz2 @H_403_27@
...@H_403_27@
boost_1_61_0/libs/iostreams/test/seekable_file_test.cpp
# cd boost_1_61_0@H_403_27@
[~/boost_1_61_0]# sh ./bootstrap.sh @H_403_27@
[~/boost_1_61_0]# ./b2@H_403_27@
11:30:05
OK,现在我也在等待,看看具体情况
有问题的话,就具体问题再行修改。
11:40:05
已经过了十分钟了,还没有好,不过我看到是用的我上次升级的gcc4.8.5在编译。
11:48:30
刚刚去了趟洗手间,意外的顺利,直接好了
...@H_403_27@
common.copy stage/lib/libboost_wave.so.1.61.0
ln-UNIX stage/lib/libboost_wave.so
...updated 1139@H_403_27@ targets...
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/root/download/boost_1_61_0
The following directory should be added to linker library@H_403_27@ paths:
/root/download/boost_1_61_0/stage/lib
安装
[~/boost_1_61_0]# sudo ./b2 install --prefix=/usr/local/@H_403_27@
...@H_403_27@
gcc.archive bin.v2/libs/test/build/gcc-4.4@H_403_27@.7@H_403_27@/release/link-static/threading-multi/libboost_test_exec_monitor.a
common.copy /usr/local/lib/libboost_test_exec_monitor.a
...updated 14227@H_403_27@ targets...