Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the CMake installation package.
tar -xzvf cmake-3.17.0-rc2.tar.gz
- Switch to the directory generated after the package is decompressed.
cd cmake-3.17.0-rc2
- Configure CMake.
./configure --prefix=/path/to/CMAKE
- Compile and install CMake.
make -j16 make install
- Set CMake environment variables.
export PATH=/path/to/CMAKE/bin:$PATH
Parent topic: Configuring the Compilation Environment