安装cmake时包的依赖问题

系统环境: CentOS6.3 (64bit)(系统是最小化安装的,没有网络)
所需源码包已事先准备好:
cmake-2.8.10.2.tar.gz

下载地址:
CMake官网:http://www.cmake.org/
软件包我已通过Xftp 4上传到到root目录中。
(1)cmake安装过程:
[root@rhel6 ~]# tar -zxvf cmake-2.8.10.2.tar.gz
[root@rhel6 ~]# cd cmake-2.8.10.2
[root@rhel6 cmake-2.8.10.2]# ./configure
---------------------------------------------
CMake 2.8.10.2,copyright 2000-2012 Kitware,Inc.
---------------------------------------------
Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using environment variable CC. See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /root/cmake-2.8.10.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
报错:缺少C的编译器 解决办法:安装gcc 和 gcc-c++编译器
由于没有网络,只能从安装盘Packages目录里找到下面这些软件包,放入同一个目录并上传到linux,然后进入该目录,rpm -ivh *全部安装
有网的情况下:yum install gcc gcc-c++
[root@rhel6 cmake-2.8.10.2]# ./configure
---------------------------------------------
CMake 2.8.10.2,Inc.
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++ Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.

---------------------------------------------
---------------------------------------------
Log of errors: /root/cmake-2.8.10.2/Bootstrap.cmk/cmake_bootstrap.log
报错:缺少make
解决办法:在安装盘里找到make-3.81-20.el6.x86_64,上传到linux并安装
有网的情况下:yum install make
[root@rhel6 cmake-2.8.10.2]# ./configure
[root@rhel6 cmake-2.8.10.2]# make && make install
安装成功!

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...