如何构建和安装需要在 Ubuntu 上单独构建和安装的 Boost 库

How to build and install Boost libraries requiring separate building and installation on Ubuntu

我最近从 Boost 1.54 升级到 1.57。但是当我查看我的所有 boost 库文件所在的 lib 目录时,我没有看到 libboost_log.so

我 运行 ./bootstrap.sh --show-libraries 看看应该安装什么,我收到了以下信息:

pdl@pdl-VirtualBox:~/Downloads/boost_1_57_0$ ./bootstrap.sh --show-libraries
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2

The following Boost libraries have portions that require a separate build
and installation step. Any library not listed here can be used by including
the headers only.

The Boost libraries requiring separate building and installation are:
    - atomic
    - chrono
    - container
    - context
    - coroutine
    - date_time
    - exception
    - filesystem
    - graph
    - graph_parallel
    - iostreams
    - locale
    - log
    - math
    - mpi
    - program_options
    - python
    - random
    - regex
    - serialization
    - signals
    - system
    - test
    - thread
    - timer
    - wave
pdl@pdl-VirtualBox:~/Downloads/boost_1_57_0$ 

我需要安装日志库。它是我单独下载的单独库,如下所示:

我已经阅读了文档、入门指南,并在线查看了如何安装这些单独的库,但我就是不明白。

不需要单独的 boost::log 库。

相反,请确保 boost::log 是使用标准安装的 Boost 构建的。 如果不是,请尝试确保安装了 Boost 的所有构建依赖项 (如果在 Ubuntu,尝试 $ sudo apt-get build-dep boost1.54 或类似的) 重新运行./b2.

之前