InstallCmake
From KratosWiki
You can get the cmake by by downloading it form cmake_website
or by typing
wget www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
in this case this download the 2.8.12.1 version, the link should be modified to download a different version (to check the latest version available go to http://www.cmake.org/files/v2.8/).
once the download succeeds the compilation can be done by
tar -xvf cmake-2.8.12.1.tar.gz cd cmake-2.8.12.1 ./configure make sudo make install