CMake CentOS更新版本

下载    wget https://github.com/Kitware/CMake/releases/download/v3.16.1/cmake-3.16.1.tar.gz

 卸载已有版本 rpm -e cmake

编译安装

            ./configure && make && make install


注意1)旧版本没有卸载

cmake
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
Segmentation fault (core dumped)


注意2)拷贝/usr/local/bin/cmake /usr/bin

bash: /usr/bin/cmake: No such file or directory


猜你喜欢

转载自blog.51cto.com/fengyuzaitu/2458883