How to Install CMake
Paul on October 29th, 2009
To Install CMake, you should first check the CMake software downloads page to find the pre-compiled binary for your build platform. If the binary is not available, or if you’ve planned to build CMake from a source tree, to build CMake you can simply check Installing CMake page for the instructions.
This example will suggest the steps involved in building & installing CMake in a non-default location on Solaris OS. Sun Studio C/C++ compilers being used to build CMake.
# gunzip -c cmake-2.6.3.tar.gz | tar -xvf -
# cd cmake-2.6.3
# export CC=cc
# export CXX=CC
# ./bootstrap –prefix=/export/expts/CMake
# make
# make install
# export PATH=/export/expts/CMake/bin:$PATH
# which cmake
/export/expts/CMake/bin/cmake
# cmake -version
cmake version 2.6-patch 3
