我要评分
获取效率
正确性
完整性
易理解

Installing CMake

CMake 3.12 or later is required for Hadoop compilation. This document uses CMake 3.12.4 as an example.

  • The CMake version provided by CentOS is earlier than 3.12. You need to manually install CMake 3.12.4. The procedure is as follows:
    1. Download the CMake installation archive.
      1
      wget https://cmake.org/files/v3.12/cmake-3.12.4.tar.gz
      
    2. Extract the CMake installation archive.
      1
      tar -zxf cmake-3.12.4.tar.gz
      
    3. Navigate to the directory created by extracting the archive and compile and install CMake.
      1
      2
      3
      4
      cd cmake-3.12.4
      ./bootstrap
      make -j8
      make install
      
    4. Check the CMake version to verify the CMake installation.
      1
      cmake --version
      

      If the version number 3.12.4 is displayed, the installation is successful.

  • On the openEuler OS, you can use the Yum repository to install CMake.
    1
    yum install cmake