CentOS6.5上Boost庫編譯安裝全記錄

來源:互聯網
上載者:User

資源準備 首先得安裝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...
完結撒花

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.