首页 > 代码库 > [转]cmake的版本太低,系统自带的cmake才2.6,更新到cmake2.8.

[转]cmake的版本太低,系统自带的cmake才2.6,更新到cmake2.8.

cmake的版本太低,更新cmake.  

 原文地址:http://luochunfeng163.blog.163.com/blog/static/1670092492014519105312792/
 
#yum remove cmake

#wget http://www.cmake.org/files/v3.7/cmake-3.7.1.tar.gz
#tar -xzvf cmake-3.7.1.tar.gz
#cd cmake-3.7.1
#./configure
#make
#make install

-bash: wget: command not found的两种解决方法

解决方法:

1、rpm 安装

下载wget的RPM包:

32位:http://mirrors.163.com/centos/6.3/os/i386/Packages/wget-1.12-1.4.el6.i686.rpm

6432位:http://mirrors.163.com/centos/6.3/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm

rpm ivh wget-1.12-1.4.el6.i686.rpm 安装即可;64位当然选择wget-1.12-1.4.el6.x86_64.rpm了

2、yum安装
yum -y install wget

[转]cmake的版本太低,系统自带的cmake才2.6,更新到cmake2.8.