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