Posted on 2014-12-17 11:29
S.l.e!ep.¢% 阅读(3977)
评论(0) 编辑 收藏 引用 所属分类:
Unix
从官网下载的
http://www.cmake.org/download/http://www.cmake.org/files/v3.1/cmake-3.1.0-rc3-Linux-x86_64.tar.gz
解压一看
drwxr-xr-x 2 root root 176 2014-12-17 10:49 bin
drwxr-xr-x 3 root root 80 2014-12-17 10:49 doc
drwxr-xr-x 4 root root 96 2014-12-17 10:49 man
drwxr-xr-x 7 root root 184 2014-12-17 10:49 share
于是乎
cp -rf ./bin/* /usr/local/bin/
cp -rf ./doc/* /usr/local/doc/
cp -rf ./man/* /usr/local/man/
cmake --version一看,结果提示
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.1
cmake version 3.1.0-rc3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
不知道有没有影响
baidu搜到
这篇linux-h51r: # export CMAKE_ROOT=/usr/local/bin/
linux-h51r: # echo $CMAKE_ROOT
/usr/local/bin/
linux-h51r: # cmake --version
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.1
cmake version 3.1.0-rc3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
还是提示出错,蛋都碎了
万般无奈下,再装回 2.8.10.2
#wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
#tar xvf cmake-2.8.10.2.tar.gz
#cd cmake-2.8.10.
#./bootstrap
#make
#make install
# cmake --version
cmake version 2.8.10.2
终于没有那可恶的提示了