Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the CMake installation package:
tar -xvf cmake-3.16.4.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd cmake-3.16.4
- Run the following command to perform configuration:
./configure --prefix=/path/to/CMAKE
- Run the following command to perform compilation and installation:
make -j&&make install
- Run the following command to set the environment variable:
export PATH=/path/to/CMAKE/bin:$PATH
Parent topic: Configuring the Compilation Environment