資源準備 首先得安裝gccg等環境 下載boost 源碼解壓編譯 安裝 完結撒花
資源準備
由於具體安裝編譯內容很長,所以下面用…來表示 首先得安裝gcc,g++,等環境
# yum install gcc g++ bzip2 bzip2-devel bzip2-libs Python-devel -y ...Installed: bzip2-devel.x86_64 0:1.0.5-7.el6_0 Complete!
下載boost 源碼,解壓、編譯
# wget http://ufpr.dl.sourceforge.net/project/boost/boost/1.61.0/boost_1_61_0.tar.bz2 ...100%[======================================>] 85,202,254 354K/s in 7m 31s 2016-07-05 11:12:45 (184 KB/s) - 已儲存 “boost_1_61_0.tar.bz2” [85202254/85202254])# tar jxvf boost_1_61_0.tar.bz2 ...boost_1_61_0/libs/iostreams/test/seekable_file_test.cpp# cd boost_1_61_0[~/boost_1_61_0]# sh ./bootstrap.sh [~/boost_1_61_0]# ./b2
11:30:05
OK,現在我也在等待,看看具體情況
有問題的話,就具體問題再行修改。
11:40:05
已經過了十分鐘了,還沒有好,不過我看到是用的我上次升級的gcc4.8.5在編譯。
11:48:30
剛剛去了趟洗手間,意外的順利,直接好了
...common.copy stage/lib/libboost_wave.so.1.61.0ln-UNIX stage/lib/libboost_wave.so...updated 1139 targets...The Boost C++ Libraries were successfully built!The following directory should be added to compiler include paths: /root/download/boost_1_61_0The following directory should be added to linker library paths: /root/download/boost_1_61_0/stage/lib
安裝
[~/boost_1_61_0]# sudo ./b2 install --prefix=/usr/local/...gcc.archive bin.v2/libs/test/build/gcc-4.4.7/release/link-static/threading-multi/libboost_test_exec_monitor.acommon.copy /usr/local/lib/libboost_test_exec_monitor.a...updated 14227 targets...
完結撒花