Skip to content

Build & Install CMake 2.8.10.2 in CentOS6.3

Bin Wei edited this page May 17, 2013 · 3 revisions
  1. Download CMake 2.8.10.2 from http://www.cmake.org/cmake/resources/software.html#latest

  2. cd /usr/local

  3. tar -zxf cmake-2.8.10.2.tar.gz

  4. rpm -qa|grep ncurses-devel // to check if you installed ncurses-devel, if not, please install this firstly

  5. rm -f cmake-2.8.10.2.tar.gz

  6. cd cmake-2.8.10.2

  7. ./configure

  8. make

  9. make install

  10. cd ..

  11. mv cmake-2.8.10.2 cmake

  12. vi /etc/profile

    Put below 2 lines into the bottom line of /etc/profile:

          PATH=/usr/local/cmake/bin:$PATH
    
          export PATH
    
  13. source /etc/profile

  14. echo $PATH // to check if cmake in the PATH.

  15. cmake --version // to check if the version is right, should be cmake version 2.8.10.2

DONE~~~