查看 cmake、gcc、g++版本 | ccmake 安装和理解 | make clean 的使用
查看 cmake 版本查看 cmake 版本cmake -version# 输出如下cmake version 3.20.0-rc2CMake suite maintained and supported by Kitware (kitware.com/cmake).查看 gcc、g++ 版本gcc -vg++ -vCentOS 查看系统版本cat /etc/redhat-releaseCentO
本博文做一个简单的知识点汇总
- 查看 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).
- 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
- 查看 gcc、g++ 版本
gcc -v
g++ -v
- CentOS 查看系统版本
cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
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
make 命令简记
通常就是在 make install 步骤遇到报错,会执行一下 make clean , 再 重新进行 make 操作;
更多推荐
所有评论(0)