標籤:centos 6.5 cmake 編譯安裝
1、查看系統資訊:[[email protected] tmp]# uname -aLinux CentOS6.5 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux2、下載合適的cmake版本;[[email protected] tmp]# wget http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz--2014-10-26 10:57:32-- http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz正在解析主機 www.cmake.org... 66.194.253.19正在串連 www.cmake.org|66.194.253.19|:80... 已串連。已發出 HTTP 請求,正在等待回應... 200 OK長度:5490501 (5.2M) [application/x-gzip]正在儲存至: “cmake-3.0.2.tar.gz” 0% [ ] 45,398 77.7K/s 3、下載完畢,解壓cmake檔案:[[email protected] tmp]# lscmake-3.0.2.tar.gz[[email protected] tmp]# tar -zxvf cmake-3.0.2.tar.gz 4、進入解壓檔案,執行./bootstrap:[[email protected] tmp]# lscmake-3.0.2 cmake-3.0.2.tar.gz[[email protected] tmp]# cd cmake-3.0.2[[email protected] cmake-3.0.2]# lsAuxiliary configure Helpbootstrap CONTRIBUTING.rst LicensesCMakeCPack.cmake Copyright.txt ModulesCMakeCPackOptions.cmake.in CTestConfig.cmake README.rstCMakeGraphVizOptions.cmake CTestCustom.cmake.in SourceCMakeLists.txt CTestCustom.ctest.in TemplatesCMakeLogo.gif DartConfig.cmake Testscmake_uninstall.cmake.in DartLocal.conf.in UtilitiesCompileFlags.cmake doxygen.config[[email protected] cmake-3.0.2]# ./bootstrap 5、執行make:[[email protected] cmake-3.0.2]# make6、執行make install :[[email protected] cmake-3.0.2]# make install7、查看cmake版本資訊:[[email protected] cmake-3.0.2]# cmake -versioncmake version 3.0.2CMake suite maintained and supported by Kitware (kitware.com/cmake).
本文出自 “鮑爾星空” 部落格,請務必保留此出處http://baoerxingkong.blog.51cto.com/9462213/1568098
CentOS 6.5編譯安裝最新cmake-3.0.2