查看 cmake、gcc、g++版本 | ccmake 安装和理解 | make clean 的使用
本博文做一个简单的知识点汇总
- 查看 cmake 版本
yum remove cmake
yum install cmake
或者
pip install cmake
cmake -version
# 输出如下
cmake version 3.20.0-rc2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- cmake 版本升级(手动安装最新版 https://cmake.org/download/)
# 下载解压
tar zxvf cmake-3.20.0-rc2-linux-x86_64.tar.gz
cd cmake-3.20.0-rc2-linux-x86_64
cp * /usr/local/ -r
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 查看 gcc、g++ 版本
gcc -v
g++ -v
- 1
- 2
- 3
- 4
- 5
- CentOS 查看系统版本
cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
- 1
- 2
- 3
- 4
- 5
ccmake 安装和理解
主页:https://cmake.org/cmake/help/latest/manual/ccmake.1.html
- 自行理解
The ccmake executable is the CMake curses interface. Project configuration settings may be specified interactively through this GUI. Brief instructions are provided at the bottom of the terminal when the program is running.
CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.
- ccmake 的安装
sudo apt-get install cmake-curses-gui
# 查看版本
ccmake -version
ccmake version 3.10.2
- 1
- 2
- 3
- 4
- 5
- 6
- 7
make 命令简记
通常就是在 make install 步骤遇到报错,会执行一下 make clean , 再 重新进行 make 操作;
文章来源: positive.blog.csdn.net,作者:墨理学AI,版权归原作者所有,如需转载,请联系作者。
原文链接:positive.blog.csdn.net/article/details/114578250
- 点赞
- 收藏
- 关注作者
评论(0)