centos 查看gcc版本[通俗易懂]

2022-09-13 11:07:21 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

1. gcc -v(Display the programs invoked by the compiler)

[root@localhost /]# gcc -v

Reading specs from /usr/i386-glibc-2.1-linux/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs

gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

2. rpm -qa|grep gcc

rpm -qi gcc

[root@localhost /]# rpm -qa|grep gcc

gcc-3.2.2-5

gcc-c -3.2.2-5

libgcc-3.2.2-5

compat-gcc-7.3-2.96.118

gcc-g77-3.2.2-5

gcc-java-3.2.2-5

gcc-gnat-3.2.2-5

compat-gcc-c -7.3-2.96.118

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/153297.html原文链接:https://javaforall.cn

0 人点赞