Upgrading CMake
Upgrade CMake to ensure that the CMake version meets the Greenplum requirements during compilation. The CMake version must be 3.1 or later. As an example, the following procedure describes how to upgrade CMake to 3.5.2.
CMake 3.22.0 is provided in openEuler 22.03. Skip this section if your OS is openEuler 22.03.
- Download the CMake source code.
1 2
cd /opt/tool wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
- Compile and install CMake.
1 2 3 4 5 6
tar -zxvf cmake-3.5.2.tar.gz cd cmake-3.5.2 ./bootstrap make make install ln -s /usr/local/lib/libzstd.so.1.4.3 /usr/lib64/libzstd.so.1
- Check the CMake version.
1 2
hash -r /usr/local/bin/cmake --version

Parent topic: Configuring the Compilation Environment