Installing CMake 3.14.0 from Source Code

  1. Download the CMake compressed source package and upload it to any directory on the server.
  2. Go to the directory where the source package is stored and perform compilation and installation.
    1. Decompress the downloaded CMake source package.
      tar -zxvf cmake-3.14.0.tar.gz
    2. Go to the decompressed folder, and run the following configuration, compilation, and installation commands:
      cd cmake-3.14.0/
      ./bootstrap --prefix=/usr
      make -j4
      make install
  3. Validate your installation.

    After the installation is complete, run the following command to check the version:

    cmake --version