Installing CMake
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the dependencies:
yum install -y gcc gcc-c++ libcurl-devel.aarch64 cmake binutils libX11-devel libXpm-devel libXft-devel libXext-devel openssl-devel pcre-devel mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel fftw-devel cfitsio-devel graphviz-devel avahi-compat-libdns_sd-devel libldap-dev python-devel libxml2-devel gsl-static
- Run the following commands to decompress the CMake installation package:
tar -xzvf cmake-v3.17.0-rc2.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd cmake-v3.17.0-rc2
- Run the following commands to perform compilation and installation:
./configure --prefix=/path/to/CMAKE make -j16 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