要在 CentOS 上检查 GCC 的版本,请按照以下步骤操作:
- 打开终端(Terminal)。
- 输入以下命令并按 Enter 键:
gcc --version
- 系统将显示已安装的 GCC 版本信息。输出应类似于以下内容:
gcc (GCC) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.