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