The operation error is shown in the figure below:

CMake version 3.13.0-RC2
The installation package is placed in the /usr/local/directory

Recompile the new version

CMake version 3.13.0-RC2
The installation package is placed in the /usr/local/directory

Recompile the new version
cd /usr/local/
sudo tar -zxv -f cmake-3.13.0-rc2.tar.gz
sudo mv cmake-3.13.0-rc2 cmake
cd cmake
sudo ./bootstrap --prefix=/usr
sudo make
sudo make install
cmake --version