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