Installing CMake 3.14.0 from Source Code
- Download the CMake compressed source package and upload it to any directory on the server.
- Go to the directory where the source package is stored and perform compilation and installation.
- Decompress the downloaded CMake source package.
tar -zxvf cmake-3.14.0.tar.gz
- 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
- Decompress the downloaded CMake source package.
- Validate your installation.
After the installation is complete, run the following command to check the version:
cmake --version
Parent topic: Sample Reference