安装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++
安装cmake时包的依赖问题
[root@rhel6 cmake-2.8.10.2]# ./configure  
---------------------------------------------  
CMake 2.8.10.2, Copyright 2000-2012 Kitware, 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 
安装成功!

 

转载于:https://www.cnblogs.com/qmsu/p/3832487.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值