加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 程序设计 > 正文

安装cmake时包的依赖问题

发布时间:2020-05-22 16:30:59 所属栏目:程序设计 来源:互联网
导读:系统环境: CentOS6.3 (64bit)(系统是最小化安装的,没有网络) 所需源码包已事先准备好: cmake-2.8.10.2.tar.gz 下载地址: CMake官网:http://www.cmake.org/ 软件包我已通过Xftp 4上传到到root目录中。 (1)cmake安装过程: [root@rhel6 ~]# tar -zxvf cm

系统环境: 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 安装成功!

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读