ubunt 14.04 Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul

CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul 需要卸载旧版本的CMake,重新编译安装CMake即可。

sudo apt-get remover cmake
sudo apt-get autoremove cmake

1. 下载cmake源码

https://github.com/Kitware/CMake/releases?after=v2.8.12.1

2. 安装,CMAKE_ROOT就会在环境变量里面

./bootstrap  
make  
sudo make install
或者 sudo ./configure --prefix=/usr

  

转载于:https://www.cnblogs.com/flyinggod/p/10130291.html

你可能感兴趣的:(ubunt 14.04 Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modul)