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:
- Download the CMake installation archive.
1wget https://cmake.org/files/v3.12/cmake-3.12.4.tar.gz - Extract the CMake installation archive.
1tar -zxf cmake-3.12.4.tar.gz
- 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
- Check the CMake version to verify the CMake installation.
1cmake --versionIf the version number 3.12.4 is displayed, the installation is successful.
- Download the CMake installation archive.
- On the openEuler OS, you can use the Yum repository to install CMake.
1yum install cmake
Parent topic: Configuring the Compilation Environment