2014-01-15 118 views
0

我試圖編譯一些需要使用「開發庫」的開發庫在CentOS從百勝GROUPLIST

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軟件缺少.. 。發現我剛跑

百勝安裝cmake28

我的問題,它是安裝cmake28-2.8.11.2-1.el6.x86_64仍然不是它想要的,但我似乎無法得到更高的出來我猜自我編譯,我聽說這是一場噩夢。

忽略,當我鍵入

百勝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的,但是當我嘗試發出

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

但你可以在這裏看到

[[email protected] 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 

[[email protected] 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 

所以我有點s ^而且我肯定這是因爲我缺少的資源,這些資源已經不存在了。

此外,如果這是錯誤的交換站點對不起,這是正確的unix/linux問題?

回答

3

使用這個代替:yum groupinstall "Additional Development"

0

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

打開包裝,將它複製到/ usr /本地

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

開發庫缺失,但我想他們被安裝在其他地方可能與開發工具合併。

1

我得到了一個錯誤與庫爲好。以下解決這對我

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

我改變啓用= 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以及目前爲止我想安裝的所有其他內容。