我最近从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$
我需要安装日志库。它是一个单独的库,我单独下载,如下所示:
我已经阅读了“入门指南”文档,并在线查看了如何安装这些单独的库,但我还没有得到它。
答案 0 :(得分:1)
不需要单独的boost::log
库。
相反,请确保使用标准安装的Boost构建boost::log
。
如果不是,请尝试确保安装了所有Boost的构建依赖项
(如果在Ubuntu上,请尝试$ sudo apt-get build-dep boost1.54
或类似)
在重新运行./b2
之前。