我boost.x86_64
在我的Linux系统上安装了:
$ sudo yum install boost.x86_64
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
* fedora: mirror.uoregon.edu
* updates: mirror.uoregon.edu
Setting up Install Process
Package boost-1.44.0-8.fc14.x86_64 already installed and latest version
Nothing to do
但是当我寻找 boost 文件时,却找不到它们:
$ sudo repoquery --list boost-1.44.0-8.fc14.x86_64
$
这有点奇怪,因为我已经安装了 boost 及其几个依赖项:
$ sudo rpm -qa | grep boost
boost-signals-1.44.0-8.fc14.x86_64
boost-graph-1.44.0-8.fc14.x86_64
boost-program-options-1.44.0-8.fc14.x86_64
boost-system-1.44.0-8.fc14.x86_64
boost-date-time-1.44.0-8.fc14.x86_64
boost-wave-1.44.0-8.fc14.x86_64
boost-serialization-1.44.0-8.fc14.x86_64
boost-1.44.0-8.fc14.x86_64
boost-thread-1.44.0-8.fc14.x86_64
boost-test-1.44.0-8.fc14.x86_64
boost-python-1.44.0-8.fc14.x86_64
boost-regex-1.44.0-8.fc14.x86_64
boost-random-1.44.0-8.fc14.x86_64
boost-filesystem-1.44.0-8.fc14.x86_64
boost-iostreams-1.44.0-8.fc14.x86_64
repoquery
找不到的文件还有其他目的地吗?
我之所以询问是因为我试图编译一个软件工具,它有一个 boost 依赖项,但它无法找到 boost 安装(显然也找不到repoquery
)。
谢谢任何建议或提示。
编辑
我也忽略了安装标题:
$ sudo yum install boost-devel.x86_64
完成此操作后,我就能找到以下标题:
$ repoquery --list boost-devel.x86_64
/usr/include/boost
/usr/include/boost/accumulators
/usr/include/boost/accumulators/accumulators.hpp
/usr/include/boost/accumulators/accumulators_fwd.hpp
/usr/include/boost/accumulators/framework
/usr/include/boost/accumulators/framework/accumulator_base.hpp
...
答案1
repoquery
是一个用于查询 yum 仓库的工具,而不是用于查询已安装的软件包的工具。
要找到您的包提供的文件,您需要:rpm -ql boost-1.44.0-8.fc14.x86_64
答案2
locate boost
我想加入locate
命令。我个人觉得这样做效果更好。