S.l.e!ep.¢%

像打了激速一样,以四倍的速度运转,开心的工作
简单、开放、平等的公司文化;尊重个性、自由与个人价值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

CMake安装

Posted on 2014-12-17 11:29 S.l.e!ep.¢% 阅读(3725) 评论(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

终于没有那可恶的提示了



只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理