home | back to tutorial

CMake Install

On this page you will install CMake which is used for installing HPX.

$ cd $HOME/projects
$ wget http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
$ tar vxf cmake-2.8.2.tar.gz
$ cd cmake-2.8.2
$ export CMAKE=$HOME/usr/local/cmake
$ mkdir -p $CMAKE
$ ./bootstrap --prefix=$CMAKE
$ make
$ make install

If you have gotten this far, it means that you have successfully installed cmake. However we are not done, we have the binary but we need to update our environment so it knows where to find it.

$ export PATH=$PATH:$CMAKE/bin

Remember to update your ~/.bash_profile to add CMake to the path. At this point you may now continue with the tutorial on the previous page.