玩TrinityCore需要2.8.9版本的CMake,哥用Ubuntu自带的apt-get install方式安装的CMake版本有点老.
这把给他重装一下,
首先是卸载旧的CMake
apt-get autoremove cmake
然后下载:
cd /usr/local wget http://www.cmake.org/files/v2.8/cmake-2.8.9-Linux-i386.tar.gz
解压:
tar zxvf cmake-2.8.9-Linux-i386.tar.gz
解压后的目录结构:
# tree -L 2 . ├── bin │ ├── ccmake │ ├── cmake │ ├── cmake-gui │ ├── cpack │ └── ctest ├── doc │ └── cmake-2.8 ├── man │ └── man1 └── share ├── aclocal ├── applications ├── cmake-2.8 ├── mime └── pixmaps 11 directories, 5 files
现在创建链接:
ln -s /usr/local/cmake-2.8.9-Linux-i386/bin/* /usr/bin/
然后执行命令检查一下:
cmake --version cmake version 2.8.9
CMake的官方书籍很贵,并且总是晚于实际最新版本,如果想看最新的文档,建议参考:
http://www.cmake.org/cmake/help/cmake_tutorial.html