how to find if C compiler in Solaris

Hi experts,

How do I find if a C compiler is installed on Solaris ?

 > cc -o
ksh: cc:  not found
 > CC
ksh: CC:  not found
 > gcc
ksh: gcc:  not found
[

I am using Solaris 5.8

Thanks,
Sameer.

Hello Sameer,

I am sure solaris supports gcc compiler/toolchain. So you can install it via

pkg-get install gcc

Most of the operating systems do not come with gcc installed. So there you go. Hope this solves your problem.

Regards,
Gaurav.