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

时间:2015-04-15 18:22:09

标签: c++ boost install boost-log

我最近从Boost 1.54升级到1.57。但是当我在我的lib目录中查看所有我的boost库文件时,我看不到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$ 

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

enter image description here

我已经阅读了“入门指南”文档,并在线查看了如何安装这些单独的库,但我还没有得到它。

1 个答案:

答案 0 :(得分:1)

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

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

相关问题