我尝试使用以下方式将cmake
安装到RHEL linux实例:
mkdir cmake
cd cmake
wget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gz
tar -xzvf cmake-3.13.3.tar.gz
cd cmake-3.13.3
./bootstrap
# -- Build files have been written to: /home/ec2-user/cmake/cmake-3.13.3
# ---------------------------------------------
# CMake has bootstrapped. Now run gmake.
gmake
# [100%] Built target foo
sudo gmake install
# CMake Error: Could not find CMAKE_ROOT !!!
# CMake has most likely not been installed correctly.
# Modules directory not found in
# /usr/local/share/cmake-3.13
# CMake Error: Error executing cmake::LoadCache(). Aborting.
正确的方法是什么?