如何在 CentOS 6.3 上安装 libboost-devel?
我尝试了以下命令:
yum install libboost-devel
Run Code Online (Sandbox Code Playgroud)
输出:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ellogroup.com
* extras: mirror.ellogroup.com
* updates: mirror.ellogroup.com
Setting up Install Process
No package libboost-devel available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud) 我安装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
Run Code Online (Sandbox Code Playgroud)
但是当我寻找 boost 文件时,我找不到它们:
$ sudo repoquery --list boost-1.44.0-8.fc14.x86_64
$
Run Code Online (Sandbox Code Playgroud)
这有点奇怪,因为我安装了 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 …Run Code Online (Sandbox Code Playgroud) 安装boost头文件需要什么CentOS 6包名:
yum install boost似乎不起作用。是否需要使用特殊的编译器指令来指向包含文件?或者是否有其他软件包要安装?