Installing Boost 1.59.0 Ubuntu
Installing Boost 1.59.0 Ubuntu
我正试图在Ubuntu上安装Boost 1.59.0,我无法从apt-get
安装它,因为它包含旧版本。
我正在克隆modular-boost
repo,并尝试使用以下命令构建它:
$./bootstrap.sh --prefix=/usr/local
$./b2 headers
最后,我试图确认这个简单的c文件安装了boost
#include <boost/version.hpp>
#include <iostream>
#include <iomanip>
int main()
{
std::cout << "Boost version: "
<< BOOST_VERSION / 100000
<< "."
<< BOOST_VERSION / 100 % 1000
<< "."
<< BOOST_VERSION % 100
<< std::endl;
return 0;
}
然而,当我试图编译它时,我得到了以下错误:
$ g++ boost_version.c
boost_version.c:1:29: fatal error: boost/version.hpp: No such file or directory
compilation terminated.
我不确定我哪里出了问题。我看了其他问题,但似乎并不能解决我的问题。
阅读很难,我正在运行
./b2
而不是
./b2 install
相关文章:
- 如何使用CMake在ubuntu上找到已安装的Boost库
- boost::p rocess::env 在 ubuntu 19.04 上坏了?
- Boost::log misbehaves (ubuntu 16.04, boost 1.58)
- 在Boost标头文件中编译错误.Centos 7失败,在Ubuntu上编译16.04
- 对 Boost::p rogram_options in Vowpalwabbit 编译的未定义引用,Ubuntu 16
- 在 Ubuntu 18.04 上获得 Boost 1.68
- 使用Boost Python V1.67和Ubuntu上的CMAKE构建基本C 项目
- 如何在Ubuntu中安装Boost多重任库
- Boost.thread代码在Ubuntu和Windows中表现出不同的行为
- 链接ubuntu 14.04中的boost文件系统和boost iostream库
- C 开发CodeBlock Ubuntu带有boost库
- boost :: ubuntu上的系统链接错误
- 使用CMake问题链接Boost(Ubuntu 14.04)
- 链接针对Ubuntu x64上的Boost
- 在 Ubuntu 14.04 上使用 boost 编译:未定义对 'boost::thread::get_id() const' 的引用
- 在 ubuntu 机器中找不到 Boost
- Ubuntu - 链接 boost.python - 致命错误:找不到 pyconfig
- Ubuntu 中 Boost SSL 的编译失败
- 在 Ubuntu 12.04 中编译并安装 Boost 1.34.1
- 在 Ubuntu 中查找 Boost 库