尝试构建需要 boost 的项目。我收到以下错误:
Unable to find the requested Boost libraries.
Boost version: 1.58.0
Boost include path: /usr/include
Could not find the following Boost libraries:
boost_thread
boost_locale
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
如果我跑
sudo apt-get install libboost-all-dev
我明白了
libboost-all-dev is already the newest version (1.58.0.1ubuntu1).
所以我不知道该怎么做。如何安装这些特定的 boost 包,或者重新安装整个 boost 包?
编辑:此外,如果我运行 apt-get remove libboost-all-dev ,似乎什么都没有被删除。之后运行 apt-get install libboost-all-dev 仍然告诉我我拥有最新版本。