查看 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).

# 下载解压

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 操作;

9


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

墨理学AI

不必打赏,关注博主公众号即可

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值