CentOS上的开发库缺少yum grouplist

时间:2014-01-15 06:31:37

标签: linux cmake yum centos6

我正在尝试编译一些需要使用“开发库”的软件

yum groupinstall "Development Tools"
yum groupinstall "Development Libraries"
yum install gcc-g++ git-core wget links zip unzip unrar
yum install mysql-server mysql-client mysql-devel
yum install openssl
yum install cmake (Must be CMake ≥ 2.8.12)

一个障碍是在CentOS 6.2 x64上让cmake高于2.6 ...发现我只需要运行

  

yum install cmake28

我的问题是它安装 cmake28-2.8.11.2-1.el6.x86_64 仍然不是它想要的那个但我似乎无法获得任何更高的我想自编译我听说这是一场噩梦。

忽略了当我输入

时的事实
  

yum groupinstall“开发库”

它返回

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.serveraxis.net
 * epel: mirrors.rit.edu
 * extras: centos.mirror.constant.com
 * rpmforge: repoforge.mirror.constant.com
 * updates: yum.singlehop.com
Setting up Group Process
Checking for new repos for mirrors
Warning: Group Development Libraries does not exist.
No packages in any requested group available to install or update

警告:组开发库不存在。

所以我是一个陈旧的伴侣而且我认为因为我不能安装我的库我无法让cmake工作好......我安装了cmake但是当我尝试发布时

[root@serve5 build]# cmake ../ -DPREFIX=/home/`echo $USER`/server
-bash: cmake: command not found

但正如你在这里看到的那样

[root@serve5 build]# yum update cmake28
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.serveraxis.net
 * epel: mirrors.rit.edu
 * extras: centos.mirror.constant.com
 * rpmforge: repoforge.mirror.constant.com
 * updates: yum.singlehop.com
Setting up Update Process
No Packages marked for Update

[root@serve5 build]# yum install cmake28 
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.serveraxis.net
 * epel: mirrors.rit.edu
 * extras: centos.mirror.constant.com
 * rpmforge: repoforge.mirror.constant.com
 * updates: yum.singlehop.com
Setting up Install Process
Package cmake28-2.8.11.2-1.el6.x86_64 already installed and latest version
Nothing to do

所以我有点难过,我确定这是因为我遗漏的资源不再存在于库中。

另外如果这是错误的交换网站抱歉哪个是unix / linux问题的正确答案?

3 个答案:

答案 0 :(得分:3)

请改用:yum groupinstall "Additional Development"

答案 1 :(得分:1)

我的存储库也出现了错误。以下为我解决了这个问题

$ sudo su
# vi /etc/yum.repos.d/CentOS-Media.repo

我将enabled = 1更改为enabled = 0和:wq

我创建了一个小的shell脚本:

#!/bin/sh

echo "installing essential tools and libraries for CentOS" ;

yum -y groupinstall "Development Tools" ;
yum -y groupinstall "Development Libraries" ;
yum -y install gcc-g++ git-core wget links zip unzip unrar ;
yum -y install mysql-server mysql-client mysql-devel ;
yum -y install openssl ;
yum -y install cmake ;

echo "Done."

我运行了脚本并成功安装了所有内容。然后,我能够使用yum来安装clamav以及我想要安装的所有其他内容。

答案 2 :(得分:0)

  

wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1-Linux-i386.tar.gz

将其打包并复制到/ usr / local

sudo tar xvfz cmake-2.8.12.1-Linux-i386.tar.gz

cd cmake-2.8.4-Linux-i386

sudo cp -R cmake-2.8.12.1-Linux-i386/* /usr/local
事实证明它比它看起来更容易......

也确保首先运行

  

yum删除cmake28

缺少开发库,但我猜他们安装在其他地方可能与开发工具合并。