Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the installation package.
cd /path/to/CMAKE wget https://github.com/Kitware/CMake/archive/refs/tags/v3.21.1.tar.gz
- Decompress the installation package.
tar xvf v3.21.1.tar.gz
- Go to the directory generated after decompression.
cd cmake-3.21.1
- Install the software.
./bootstrap --prefix=/path/to/CMAKE make -j make install
- Set the environment variable.
export PATH=/path/to/CMAKE/bin:$PATH
Parent topic: Configuring the Compilation Environment