前提ubuntu可以联网,执行如下命令
apt-cache search boost
sudo apt-get install libboost-all-dev
安装之后,库文件所在目录如下
/usr/lib/x86_64-linux-gnu
其中包括如下boost相关库
libboost_atomic.a
libboost_atomic.so
libboost_atomic.so.1.65.1
libboost_chrono.a
libboost_chrono.so
libboost_chrono.so.1.65.1
libboost_container.a
libboost_container.so
libboost_container.so.1.65.1
libboost_context.a
libboost_context.so
libboost_context.so.1.65.1
libboost_coroutine.a
libboost_coroutine.so
libboost_coroutine.so.1.65.1
libboost_date_time.a
libboost_date_time.so
libboost_date_time.so.1.65.1
libboost_exception.a
libboost_fiber.a
libboost_fiber.so
libboost_fiber.so.1.65.1
libboost_filesystem.a
libboost_filesystem.so
libboost_filesystem.so.1.65.1
libboost_graph.a
libboost_graph_parallel.a
libboost_graph_parallel.so
libboost_graph_parallel.so.1.65.1
libboost_graph.so
libboost_graph.so.1.65.1
libboost_iostreams.a
libboost_iostreams.so
libboost_iostreams.so.1.65.1
libboost_locale.a
libboost_locale.so
libboost_locale.so.1.65.1
libboost_log.a
libboost_log_setup.a
libboost_log_setup.so
libboost_log_setup.so.1.65.1
libboost_log.so
libboost_log.so.1.65.1
libboost_math_c99.a
libboost_math_c99f.a
libboost_math_c99f.so
libboost_math_c99f.so.1.65.1
libboost_math_c99l.a
libboost_math_c99l.so
libboost_math_c99l.so.1.65.1
libboost_math_c99.so
libboost_math_c99.so.1.65.1
libboost_math_tr1.a
libboost_math_tr1f.a
libboost_math_tr1f.so
libboost_math_tr1f.so.1.65.1
libboost_math_tr1l.a
libboost_math_tr1l.so
libboost_math_tr1l.so.1.65.1
libboost_math_tr1.so
libboost_math_tr1.so.1.65.1
libboost_mpi.a
libboost_mpi_python3.a
libboost_mpi_python3-py36.a
libboost_mpi_python3-py36.so
libboost_mpi_python3-py36.so.1.65.1
libboost_mpi_python3.so
libboost_mpi_python.a
libboost_mpi_python-py27.a
libboost_mpi_python-py27.so
libboost_mpi_python-py27.so.1.65.1
libboost_mpi_python-py36.a
libboost_mpi_python-py36.so
libboost_mpi_python.so
libboost_mpi.so
libboost_mpi.so.1.65.1
libboost_numpy3.a
libboost_numpy3-py36.a
libboost_numpy3-py36.so
libboost_numpy3-py36.so.1.65.1
libboost_numpy3.so
libboost_numpy.a
libboost_numpy-py27.a
libboost_numpy-py27.so
libboost_numpy-py27.so.1.65.1
libboost_numpy.so
libboost_prg_exec_monitor.a
libboost_prg_exec_monitor.so
libboost_prg_exec_monitor.so.1.65.1
libboost_program_options.a
libboost_program_options.so
libboost_program_options.so.1.65.1
libboost_python3.a
libboost_python3-py36.a
libboost_python3-py36.so
libboost_python3-py36.so.1.65.1
libboost_python3.so
libboost_python.a
libboost_python-py27.a
libboost_python-py27.so
libboost_python-py27.so.1.65.1
libboost_python-py36.a
libboost_python-py36.so
libboost_python.so
libboost_random.a
libboost_random.so
libboost_random.so.1.65.1
libboost_regex.a
libboost_regex.so
libboost_regex.so.1.65.1
libboost_serialization.a
libboost_serialization.so
libboost_serialization.so.1.65.1
libboost_signals.a
libboost_signals.so
libboost_signals.so.1.65.1
libboost_stacktrace_addr2line.a
libboost_stacktrace_addr2line.so
libboost_stacktrace_addr2line.so.1.65.1
libboost_stacktrace_backtrace.a
libboost_stacktrace_backtrace.so
libboost_stacktrace_backtrace.so.1.65.1
libboost_stacktrace_basic.a
libboost_stacktrace_basic.so
libboost_stacktrace_basic.so.1.65.1
libboost_stacktrace_noop.a
libboost_stacktrace_noop.so
libboost_stacktrace_noop.so.1.65.1
libboost_system.a
libboost_system.so
libboost_system.so.1.65.1
libboost_test_exec_monitor.a
libboost_thread.a
libboost_thread.so
libboost_thread.so.1.65.1
libboost_timer.a
libboost_timer.so
libboost_timer.so.1.65.1
libboost_type_erasure.a
libboost_type_erasure.so
libboost_type_erasure.so.1.65.1
libboost_unit_test_framework.a
libboost_unit_test_framework.so
libboost_unit_test_framework.so.1.65.1
libboost_wave.a
libboost_wave.so
libboost_wave.so.1.65.1
libboost_wserialization.a
libboost_wserialization.so
libboost_wserialization.so.1.65.1
boost所在头文件
/usr/include/boost