Make sure you have a GCC compiler before installing. Refer to the article www.cnblogs.com/mophee/arch…
Cmake v2.x is so old that I recommend installing v3.x!
Installation method:
1, official website cmake.org/, download the source code cmake.org/files/
yum -y install gcc automake autoconf libtool make
2, tar -zxvf cmake-2.8.12.2.tar.gz
3, CD cmake – 2.8.12.2
4,. / the bootstrap
5. Gmake or make
6. Gmake install or make install
7, cmake – version
[cmake terminal command] cmake. Make make clean
Unloading method:
1, [root@localhost ~]# yum remove cmake
Find the install_manifest.txt file generated after make install. It is in the source folder.
Text open, view the path of everything installed, manually delete them.
/ root @ localhost ~ # cat install_manifest. TXT | sudo xargs rm # 3, [root @ localhost ~] cmake – version bash: /usr/local/bin/cmake: No such file or directory
Recommend a few tutorials:
CMake Practice.pdf is recommended
Download.csdn.net/download/li…
Sewm.pku.edu.cn/src/paradis… PDF ebook
Github.com/carl-wang-c… Form a complete set of source code
CMake tutorial
Write makefile.pdf with me