1. view system information: [[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, download appropriate cmake versions; [[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.gzis on the hosts host www.cmake.org... 66.194.253.19 connecting to www.cmake.org | 66.194.253.19 |: 80... connected. An HTTP request has been sent and is waiting for response... 200 OK length: 5490501 (5.2 m) [application/X-gzip] is being saved to: “cmake-3.0.2.tar.gz "0% [] 45,398 77.7 K/s 3. After downloading, decompress the cmake file: [[email protected] TMP] # lscmake-3.0.2.tar.gz [[email protected] TMP] # tar-zxvf cmake-3.0.2.tar.gz 4. Open the unzip file and execute. /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, execute make: [[email protected] cmake-3.0.2] # make6, execute make install: [[email protected] cmake-3.0.2] # Make install7, view the cmake version information: [[email protected] cmake-3.0.2] # cmake-versioncmake version 3.0.2cmake suite maintained and supported by kitware (kitware.com/cmake ).
This article is from the "Bauer Star" blog, please be sure to keep this source http://baoerxingkong.blog.51cto.com/9462213/1568098
Centos 6.5 compile and install the latest cmake-3.0.2