)bzip2-devel python-devel
?
[root@mdb01 Packages]# rpm -ivh bzip2-devel-1.0.5-7.el6_0.x86_64.rpm
warning: bzip2-devel-1.0.5-7.el6_0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...? ? ? ? ? ? ? ? ########################################### [100%]
? 1:bzip2-devel? ? ? ? ? ? ########################################### [100%]
[root@mdb01 Packages]# rpm -ivh python-devel-2.6.6-29.el6_2.2.x86_64.rpm
warning: python-devel-2.6.6-29.el6_2.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...? ? ? ? ? ? ? ? ########################################### [100%]
? 1:python-devel? ? ? ? ? ########################################### [100%]
[root@mdb01 Packages]#
?
Boost系统相关包安装检查
?
[root@mdb01 Packages]# rpm -q gcc gcc-c++ bzip2 bzip2-devel bzip2-libs python-devel
gcc-4.4.6-4.el6.x86_64
gcc-c++-4.4.6-4.el6.x86_64
bzip2-1.0.5-7.el6_0.x86_64
bzip2-devel-1.0.5-7.el6_0.x86_64
bzip2-libs-1.0.5-7.el6_0.x86_64
python-devel-2.6.6-29.el6_2.2.x86_64
[root@mdb01 Packages]#
二.cmake-3.3.2
?
?# ./bootstrap
?# make
?# make install
?
三.boost_1_59_0
1.预编译配置
[root@mdb01 boost_1_59_0]# ./bootstrap.sh
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2
Detecting Python version... 2.6
Detecting Python root... /usr
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...
?
Bootstrapping is done. To build, run:
?
? ? ./b2
? ?
To adjust configuration, edit 'project-config.jam'.
Further information:
?
? - Command line help:
? ? ./b2 --help
? ?
? - Getting started guide:
? ? http://www.boost.org/more/getting_started/unix-variants.html
? ?
? - Boost.Build documentation:
? ? http://www.boost.org/build/doc/html/index.html
?
[root@mdb01 boost_1_59_0]#
2.编译
[root@rhel6 boost_1_59_0]#./b2
?
...........
...........
?
...on 1100th target...
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/wave_config_constant.o
common.mkdir bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/cpplexer
common.mkdir bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/cpplexer/re2clex
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/cpplexer/re2clex/aq.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
gcc.archive bin.v2/libs/wave/build/gcc-4.4.6/release/link-static/threading-multi/libboost_wave.a
common.copy stage/lib/libboost_wave.a
...updated 1107 targets...
?
?
The Boost C++ Libraries were successfully built! (表示编译成功)
?
The following directory should be added to compiler include paths:
?
? ? /home/soft/boost_1_59_0
?
The following directory should be added to linker library paths:
?
? ? /home/soft/boost_1_59_0/stage/lib
3.安装
[root@mdb01 boost_1_59_0]#./b2 install
?
...........
...........
common.copy /usr/local/lib/libboost_signals.so.1.59.0
ln-UNIX /usr/local/lib/libboost_signals.so
common.copy /usr/local/lib/libboost_timer.so.1.59.0
ln-UNIX /usr/local/lib/libboost_timer.so
common.copy /usr/local/lib/libboost_prg_exec_monitor.so.1.59.0
ln-UNIX /usr/local/lib/libboost_prg_exec_monitor.so
common.copy /usr/local/lib/libboost_unit_test_framework.so.1.59.0
ln-UNIX /usr/lo