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

  

猜你喜欢

转载自www.cnblogs.com/flyinggod/p/10130291.html
今日推荐