1、查看 gcc
的信息
1.1、查看 CentOS
的版本
cat /etc/redhat-release
CentOS Linux release <strong>7.6.1810</strong> (Core)
1.2、查看 gcc
安装的位置
which gcc
/usr/bin/gcc
1.3、查看 gcc
的版本
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable