Decompression
tar zxvf ./boost_1_59_0.tar.bz2
into the directory, perform
./bootstrap The --with-Libraries = System, filesystem, log, Toolset = Thread --with-GCC
./b2 = Toolset GCC CXXFLAGS = "- STD = c ++ 11 "
Note: the red font above your content, you can configure after seeing other options. Green represents the contents of the above fonts using c ++ 11 standard compiler libraries to use uniform standards. Not in use, remove the green font content.
Wait a minute, compile successfully. Install it.
./b2 install --prefix = / usr
run ./b2 install command, installed by default in
/ Usr / local / lib directory
Header files
/ Usr / local / include / boost directory
Parameters can be added later install --prefix = / usr
Component configuration:
- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : not building
- exception : not building
- filesystem : building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : building
- math : not building
- mpi : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : building
- test : not building
- thread : building
- timer : not building
- wave : not building
----------------
Disclaimer: This article is CSDN blogger "Zhe child" of the original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source and this link statement.
Original link: https: //blog.csdn.net/hzdiy/article/details/18888477