top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to know gcc version

+2 votes
268 views

How to know gcc version in Linux, Unix, sunOS

posted Feb 25, 2014 by Avinash Shukla

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

To know gcc vesrion in Linux Ubuntu and Unix:

$gcc -v

    gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)

For Solaris SunOS:

$ pkginfo -l | grep gcc


PKGINST: SMCgcc342
NAME: gcc

Try that command should tell you what gcc you have 3.4.2 is version im running

answer Feb 25, 2014 by Amit Kumar Pandey
...