Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the CMake installation package.
tar -xvf cmake-3.16.4.tar.gz
- Go to the directory generated after the decompression.
cd cmake-3.16.4
- Perform the configuration.
export OPENSSL_ROOT_DIR=/path/to/OPENSSL export OPENSSL_INCLUDE_DIR=/path/to/OPENSSL/include export OPENSSL_CRYPTO_DIR=/path/to/OPENSSL/lib ./configure --prefix=/path/to/CMAKE
- Perform the installation.
make -j&&make install
- Set the environment variables.
export PATH=/path/to/CMAKE/bin:$PATH
Parent topic: Configuring the Compilation Environment