我正在使用提升。我使用sudo apt-get install
. 现在我无法在我的文件系统上找到我的 boost lib 文件。
我想在我的 Qt 项目中包含 lib 的路径。grepping 花费的时间太长了 :( 我在 中找到了包含/usr/include/boost
。但我还需要知道库路径。
我在 ubuntu 12.04 上安装了 boost 1.54 库,它似乎与我安装的 libboost-all-dev 冲突,所以我想完全卸载 boost 1.54 库。如何卸载从源安装的那个?
当我尝试从 apt-get install 下载时,为什么没有获得最新 (>1.62) 版本的 boost?
sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update
aptitude search boost
Run Code Online (Sandbox Code Playgroud)
我只看到 1.55 版本。1.67 会发生什么?
我使用 Ubuntu 软件中心安装了 c++ boost 开发库。问题是那是很久以前的事了,我不记得它们安装在哪里,也不记得它们是什么版本。我可以从命令行做些什么来告诉我在我的系统上安装了什么版本?我知道我可以做这样的事情
gcc -v
Run Code Online (Sandbox Code Playgroud)
获取应用程序的版本,但是否有类似的东西可用于图书馆?我正在使用 ubuntu 12.04
我使用 ubuntu 11.04。
我的增强版:
sam@sam:~/code/ros/pcl$ apt-cache showpkg libboost-all-dev
Package: libboost-all-dev
Versions:
1.42.0.1ubuntu1 (/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-amd64_Packages
MD5: 72efad05a3c79394c125b79e1d4eb3a7
Reverse Depends:
libvtk5-dev,libboost-all-dev
libfeel++-dev,libboost-all-dev
Dependencies:
1.42.0.1ubuntu1 - libboost-dev (0 (null)) libboost-date-time-dev (0 (null)) libboost-filesystem-dev (0 (null)) libboost-graph-dev (0 (null)) libboost-iostreams-dev (0 (null)) libboost-math-dev (0 (null)) libboost-program-options-dev (0 (null)) libboost-python-dev (0 (null)) libboost-regex-dev (0 (null)) libboost-serialization-dev (0 (null)) libboost-signals-dev (0 (null)) libboost-system-dev (0 (null)) libboost-test-dev (0 (null)) libboost-thread-dev (0 (null)) libboost-wave-dev (0 (null))
Provides:
1.42.0.1ubuntu1 -
Reverse Provides:
sam@sam:~/code/ros/pcl$
Run Code Online (Sandbox Code Playgroud)
如何使用 apt …
我在基于 AMD A8-4500m 的笔记本电脑上使用 Ubuntu 14.04(3.13.0-24-generic kernel),我最近注意到,AMD Turbo Core 根本不工作。一切都在 Windows 上运行,但是,在 Linux 上 CPU 频率不能超过 1.9 GHz(使用 进行检查cpufreq-aperf
)。
这是 的输出cpupower frequency-info
,注意Active: no under boost state support:
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 4.0 us.
hardware limits: 1.40 GHz - 1.90 GHz
available frequency steps: 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, …
Run Code Online (Sandbox Code Playgroud) 我正在编译一个需要 boost-thread-mt 库的程序。我已经使用安装 libboost-all-devsudo apt-get install libboost-all-dev
但编译器说它找不到 boost-thread-mt 库。这个库在其他包中吗?请指导我为此需要安装什么。
我正在尝试在 Ubuntu Xenial 上为 python3 安装 boost 绑定,但它拉入了整个 python2.7 依赖树。我的系统(Docker 映像)上不需要或不需要 python2.7。有没有办法只安装 python3 绑定?
我已将系统更新到 16.04 并安装了大量更新。
自 2013 年 11 月以来,我的计算机上安装了 1.54 版的 boost 库。今天我重建了一些代码,但它再也找不到 boost regex 库。
所以我尝试更新到最新版本,但不断收到此错误:
sudo apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-all-dev
Run Code Online (Sandbox Code Playgroud)
它似乎确实应该在存储库中。我最初并没有以这种方式安装 boost,而是去了他们自己的站点,并可能使用一些“wget”命令来构建它。(我可能会尝试这样做并获得他们的最新版本 1.61,而这里的打包版本是 1.58)。
不过,我想知道为什么上述方法不起作用。
注意:sudo aptitude install libboost
给我以下反馈:
> Couldn't find package "libboost". However, the following packages
> contain "libboost" in their name: libboost1.58-tools-dev
> libboost1.58-tools-dev:i386 libboost-program-options1.58.0
> libboost-program-options1.58.0:i386 libboost1.58-dbg
> libboost1.58-dbg:i386 libboost1.58-dev libboost1.58-dev:i386
> libboost1.58-doc libboost-date-time1.53.0 libboost1.54-doc
> libboost-filesystem1.58.0 …
Run Code Online (Sandbox Code Playgroud) 我有从源代码编译的最新 cmake 3.0.2,还安装了 libboost-all-dev。而 find_package(Boost) 找不到。这是 cmake 的输出:
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost of BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Run Code Online (Sandbox Code Playgroud)
安装 Boost 后是否需要手动设置任何变量才能使其对 cmake 可见?
谢谢。