Rate This Document
Findability
Accuracy
Completeness
Readability

Installing CMake

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Run the following commands to decompress the CMake installation package:
    tar -xzvf cmake-v3.17.0-rc2.tar.gz
  4. Run the following command to switch to the directory generated after the package is decompressed:
    cd cmake-v3.17.0-rc2
  5. Run the following commands to perform compilation and installation:
    ./configure --prefix=/path/to/CMAKE
    make -j16
    make install
  6. Run the following command to set the CMake environment variable:
    export PATH=/path/to/CMAKE/bin:$PATH