上传cmake-2.8.10.2.tar.gz到/usr/local/src目录
[root@localhost src]# tar zxvf cmake-2.8.10.2.tar.gz [root@localhost src]# ll total 29928 drwxr-xr-x. 9 root root 4096 Jan 29 19:37 cmake-2.8.10.2 -rw-r--r--. 1 root root 5768373 Jan 29 19:30 cmake-2.8.10.2.tar.gz -rw-r--r--. 1 root root 24870769 Jan 29 19:30 mysql-5.5.29.tar.gz [root@localhost src]# cd cmake-2.8.10.2 [root@localhost cmake-2.8.10.2]# ll total 2980 -rwxr-xr-x. 1 501 games 54084 Nov 27 21:26 bootstrap -rw-r--r--. 1 501 games 190526 Nov 27 21:26 ChangeLog.manual -rw-r--r--. 1 501 games 2603523 Nov 27 21:26 ChangeLog.txt -rw-r--r--. 1 501 games 5395 Nov 27 21:26 CMakeCPack.cmake -rw-r--r--. 1 501 games 2536 Nov 27 21:26 CMakeCPackOptions.cmake.in -rw-r--r--. 1 501 games 153 Nov 27 21:26 CMakeGraphVizOptions.cmake -rw-r--r--. 1 501 games 24542 Nov 27 21:26 CMakeLists.txt -rw-r--r--. 1 501 games 4481 Nov 27 21:26 CMakeLogo.gif -rw-r--r--. 1 501 games 796 Nov 27 21:26 cmake_uninstall.cmake.in -rw-r--r--. 1 501 games 2204 Nov 27 21:26 CompileFlags.cmake -rwxr-xr-x. 1 501 games 99 Nov 27 21:26 configure -rw-r--r--. 1 501 games 2637 Nov 27 21:26 Copyright.txt -rw-r--r--. 1 501 games 1050 Nov 27 21:26 CTestConfig.cmake -rw-r--r--. 1 501 games 3258 Nov 27 21:26 CTestCustom.cmake.in -rw-r--r--. 1 501 games 145 Nov 27 21:26 CTestCustom.ctest.in -rw-r--r--. 1 501 games 809 Nov 27 21:26 DartConfig.cmake -rw-r--r--. 1 501 games 4144 Nov 27 21:26 DartLocal.conf.in drwxr-xr-x. 3 root root 4096 Jan 29 19:37 Docs -rw-r--r--. 1 501 games 28046 Nov 27 21:26 doxygen.config drwxr-xr-x. 4 root root 4096 Jan 29 19:37 Example drwxr-xr-x. 9 root root 20480 Jan 29 19:37 Modules -rw-r--r--. 1 501 games 1946 Nov 27 21:26 Readme.txt drwxr-xr-x. 7 root root 32768 Jan 29 19:37 Source drwxr-xr-x. 2 root root 4096 Jan 29 19:37 Templates drwxr-xr-x. 150 root root 4096 Jan 29 19:37 Tests drwxr-xr-x. 15 root root 4096 Jan 29 19:37 Utilities //安装cmake缺少gcc-c++ [root@localhost cmake-2.8.10.2]# ./configure --------------------------------------------- CMake 2.8.10.2, Copyright 2000-2012 Kitware, Inc. C compiler on this system is: cc --------------------------------------------- Error when bootstrapping CMake: Cannot find appropriate C++ compiler on this system. Please specify one using environment variable CXX. See cmake_bootstrap.log for compilers attempted. --------------------------------------------- Log of errors: /usr/local/src/cmake-2.8.10.2/Bootstrap.cmk/cmake_bootstrap.log --------------------------------------------- //yum安装gcc-c++,参见:http://dongbao100.iteye.com/admin/blogs/1777702 [root@localhost cmake-2.8.10.2]# yum install gcc-c++ Loaded plugins: fastestmirror Determining fastest mirrors cdrom | 4.0 kB 00:00 ... cdrom/primary_db | 3.5 MB 00:00 ... Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gcc-c++.i686 0:4.4.6-4.el6 will be installed --> Processing Dependency: libstdc++-devel = 4.4.6-4.el6 for package: gcc-c++-4.4.6-4.el6.i686 --> Running transaction check ---> Package libstdc++-devel.i686 0:4.4.6-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gcc-c++ i686 4.4.6-4.el6 cdrom 4.3 M Installing for dependencies: libstdc++-devel i686 4.4.6-4.el6 cdrom 1.5 M Transaction Summary ================================================================================ Install 2 Package(s) Total download size: 5.8 M Installed size: 18 M Is this ok [y/N]: y Downloading Packages: -------------------------------------------------------------------------------- Total 28 MB/s | 5.8 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libstdc++-devel-4.4.6-4.el6.i686 1/2 Installing : gcc-c++-4.4.6-4.el6.i686 2/2 Verifying : gcc-c++-4.4.6-4.el6.i686 1/2 Verifying : libstdc++-devel-4.4.6-4.el6.i686 2/2 Installed: gcc-c++.i686 0:4.4.6-4.el6 Dependency Installed: libstdc++-devel.i686 0:4.4.6-4.el6 Complete!
继续安装cmake,出现如下错误:
[root@localhost 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: /usr/local/src/cmake-2.8.10.2/Bootstrap.cmk/cmake_bootstrap.log ---------------------------------------------
解决办法,安装make即可
[root@localhost cmake-2.8.10.2]# yum install make
继续安装cmake
[root@localhost cmake-2.8.10.2]# ./configure
编译安装
[root@localhost cmake-2.8.10.2]# gmake [root@localhost cmake-2.8.10.2]# gmake install
安装成功
相关推荐
鉴于cmake是国外的软件,国内各大下载网站也很难找到Linux版本的cmake,...安装: yum install -y gcc gcc-c++ make automake tar -zxvf cmake-3.16.0.tar.gz cd cmake-3.16.0/ ./configure gmake gmake install
OSG3.4.0官方给出编译所需的依赖库的源代码,及官方给出的cmake编译工程。 https://github.com/bjornblissing/osg-3rdparty-cmake 注,curl需要自行使用curl的cmake工程编译,否则会提示找不到合适的编译器。
资源包含:(1)CMake软件的安装包cmake-3.16.1-win64-x64.msi;(2)CloudCompare的源代码;(3)下载地址、安装参考教程、编译参考教程。
Kedvelop源码以及cmake,可在Window上下使用,前提需要安装KDE运行库以及QT
ubuntu20.04环境下cmake安装说明(转载请注明出处,谢谢!!!)
linux源码、cmake方式安装mysql5.5.28 附详细的步骤!!!
OSG学习源代码学习+cmake
CMake 支持 in-place 建构(二进档和源代码在同一个目录树中)和 out-of-place 建构(二进档在别的目录里),因此可以很容易从同一个源代码目录树中建构出多个二进档。CMake 也支持静态与动态程式库的建构。 “CMake...
cmake-3.6.3和cmake-3.12.2的源码,可以在linux下编译安装cmake,安装完成之后就可以使用cmake来编译源码了.
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程) 银河麒麟桌面操作系统V10SP1版本-x86架构cmake离线包; 内核:5.4 如需其他离线包可私信我。
linux系统下源码版mysql安装,安装前需要先安装cmake
cmake-3.12.0 源代码 欢迎下载学习使用 本资源来源于网络,如有侵权请通知删除
cmake源码,包含两个版本,3.12.3和3.16.2(目前最新版本),如果对版本没什么要求,那就使用最新版本3.16.2。下载后解压需要的版本,然后编译安装即可。 附官网下载地址:https://cmake.org/download/ (超级慢哦)
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程) 银河麒麟桌面操作系统V10SP1版本-mips架构cmake离线包; CPU:龙芯3A4000 内核: 5.4 如需其他离线包可私信我。
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程)。本文件中包含Windows与linux平台的安装包。
VTK8.0.0.rar源码和Cmake编译文件,有我在Cmake编译VTK的文件,是用VS2015生成的,也可以自己编译。
GSL( GNU Scientific Library) 2.5 含源代码及CMake工程 和已编译库dll,lib,利用CMake可直接构建VS工程进行编译
cmake-3.18.0-Linux-x86_64.tar.gz 官网目前最新版 tar.gz格式的文件
使用cef源码和cmake生成VS工程,可运行测试demo。。。。。。。。。。
cmake源码编译工具