怎样查看linux里gcc的版本号
展开全部
1. gcc -v
[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
3. gcc -dumpversion (Display the version of the compiler)
[root@localhost /]# gcc -dumpversion
egcs-2.91.66
[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
3. gcc -dumpversion (Display the version of the compiler)
[root@localhost /]# gcc -dumpversion
egcs-2.91.66
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询