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