Wednesday 26 February 2014

Installing cmake 2.8.8 or higher on Ubuntu 12.04 (Precise Pangolin)

  1. Check the version of your Cmake using cmake --version
  2. If 2.8.7, Download the latest CMake version from the CMake web site 
  3. Uncompress it in a new folder
  4. Create a _build directory in the folder: mkdir _build
  5. From the _build directory, run the following commands to build and install CMake from sources:
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install  
sudo ldconfig