CentOS 6.5編譯安裝最新cmake-3.0.2

來源:互聯網
上載者:User

標籤: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.