在CentOS上的开发库在yum grouplist中缺失

时间:2020-12-10 00:17:40

I'm trying to compile some software that requires the use of the "Development Libraries"

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

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)

One obstacle was getting cmake higher than 2.6 on CentOS 6.2 x64... found out I just had to run

一个障碍是cmake在CentOS 6.2 x64上高于2.6…发现我不得不跑了

yum install cmake28

yum安装cmake28

my issue with it is it installed cmake28-2.8.11.2-1.el6.x86_64 still not the one it wants but I can't seem to get any higher with out I guess self compiling which I hear it's a nightmare.

我的问题是它安装了cmake28-2.8.11.2-1.el6。x86_64仍然不是它想要的,但是如果没有我猜是我自己编译的话,我不能再高了,我听说这是一个噩梦。

ignoring the fact that when I type

忽略了我打字的时候

yum groupinstall "Development Libraries"

百胜groupinstall“开发库”

it returns

它返回

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

Warning: Group Development Libraries does not exist.

警告:组开发库不存在。

So I'm at a stale mate and I think because the Libraries do not exist for me to install I cannot get cmake to well work... I have cmake installed but when I try to issue

所以我在一个陈旧的伙伴,我认为因为图书馆不存在,我不能让cmake很好地工作……我已经安装了cmake,但是当我尝试发出cmake时

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

but as you can see here

你们可以看到。

[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

or

[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

So I'm kinda stumped and I'm certain it's because of a resource I am missing that's in the Libraries that no longer exist.

所以我有点难住了,我确信这是因为我在图书馆里找不到的资源。

Also if this is the wrong exchange site sorry which is the correct one for unix/linux problems?

如果这是错误的交换站点对不起,unix/linux问题的正确站点是哪个?

3 个解决方案

#1


3  

Use this instead: yum groupinstall "Additional Development"

可以使用以下方法:yum groupinstall“附加开发”

#2


1  

I was getting an error with the repositories as well. The following resolved it for me

我在存储库中也有错误。以下为我解决了这个问题

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

I changed enabled=1 to enabled=0 and :wq

我更改了enabled=1到enabled=0和:wq。

I create a small shell script:

我创建了一个小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."

I ran the script and everything installed successfully. Then, I was able to use yum to install clamav and everything else I wanted to install so far.

我成功地运行了脚本并安装了所有东西。然后,我可以使用yum来安装clamav以及到目前为止我想要安装的所有东西。

#3


0  

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

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

Unpack and copy it to /usr/local

打开并复制到/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

turns out it was easier than it looked....

原来这是比看起来更容易....

also made sure to first run

还要确保第一次运行

yum remove cmake28

百胜删除cmake28

Development Libraries are missing but I guess they are installed somewhere else maybe merged with Development Tools.

开发库缺失了,但是我猜它们被安装在其他地方,可能与开发工具合并在一起。

#1


3  

Use this instead: yum groupinstall "Additional Development"

可以使用以下方法:yum groupinstall“附加开发”

#2


1  

I was getting an error with the repositories as well. The following resolved it for me

我在存储库中也有错误。以下为我解决了这个问题

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

I changed enabled=1 to enabled=0 and :wq

我更改了enabled=1到enabled=0和:wq。

I create a small shell script:

我创建了一个小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."

I ran the script and everything installed successfully. Then, I was able to use yum to install clamav and everything else I wanted to install so far.

我成功地运行了脚本并安装了所有东西。然后,我可以使用yum来安装clamav以及到目前为止我想要安装的所有东西。

#3


0  

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

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

Unpack and copy it to /usr/local

打开并复制到/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

turns out it was easier than it looked....

原来这是比看起来更容易....

also made sure to first run

还要确保第一次运行

yum remove cmake28

百胜删除cmake28

Development Libraries are missing but I guess they are installed somewhere else maybe merged with Development Tools.

开发库缺失了,但是我猜它们被安装在其他地方,可能与开发工具合并在一起。