在 Ubuntu 12.04 中编译并安装 Boost 1.34.1
compile and install boost 1.34.1 in ubuntu 12.04
最近,我在超表 0.9.0.0 中工作,所以我首先必须构建 boost 1.34.1。
我敢肯定我几乎遵循索引.html在提升目录的文档。首先,使用./confiure
,然后输入sudo make install
。在手册中,它告诉两个命令可以帮助我默认安装所有库。但是,当我编译超表源代码时,会发生此错误
CMake Error at cmake/FindBoost.cmake:151 (MESSAGE):
Boost thread library was not found.
Call Stack (most recent call first):
我试图在编译 boost 时修改编译选项。例如,使用 ./configure --with-libraries=program_options...
,但我仍然发现编译器在编译时无法执行许多操作。当然,我需要的提升库在默认目录/usr/local/lib
中找不到。
事实是我不能和自己一起做,所以我很想请你们帮忙。提前谢谢大家!
使用
sudo apt-get install libboost-all-dev
这比自己建立提升要快得多。
相关文章:
- C++:如何在CLion IDE中安装Boost
- 如何在 Mac OS 上安装 boost-mpi 及其对 clang 的依赖关系?
- 在 Windows 10 上安装 Boost 时遇到问题
- 无法在 OS X Sierra 上安装 boost
- boost_signals 使用 brew 安装 boost 时缺少库
- 我是否需要安装Boost来构建odeint
- 非相互互动安装Boost二进制
- 如何在Ubuntu中安装Boost多重任库
- 在Windows 8.1上安装Boost Python,正确设置工具链
- 如何在我的mac上安装boost
- 在macosx上安装boost和PyUblas时出错
- 使用单独的Boost库进行编译,无需安装Boost
- 在 Ubuntu 12.04 中编译并安装 Boost 1.34.1
- 如何在 OSX 中安装 boost
- 安装 boost 会搞砸我的程序吗?
- 从源代码编译后未安装 Boost ptr_container库
- 在 debian 中安装 boost(用于代码块)
- 无法成功安装 Boost.Python
- 在 Mac 上安装 Boost with CodeBlocks
- <dir> 因缺乏而跳过...尝试在 Ubuntu 1.49 上安装 Boost 11.04 时出错