how to find if C compiler in Solaris


 
Thread Tools Search this Thread
Top Forums Programming how to find if C compiler in Solaris
# 1  
Old 07-08-2010
how to find if C compiler in Solaris

Hi experts,

How do I find if a C compiler is installed on Solaris ?
Code:
 > cc -o
ksh: cc:  not found
 > CC
ksh: CC:  not found
 > gcc
ksh: gcc:  not found
[

I am using Solaris 5.8

Thanks,
Sameer.
# 2  
Old 07-08-2010
Hello Sameer,

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

Code:
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

how to find out the compiler version and OS from binary file

Command to get the Compiler version(xlc/gcc) from the binary on AIX platform. I m searching for the Command, to get the Compiler(xlc/gcc) used to build the binary on AIX. I got two commands used on Linux Platform: - readelf -a <lib> | grep comment - hexdump -C -s 0x49e7b -n 1812 <lib> ... (1 Reply)
Discussion started by: Prajakta
1 Replies

2. Solaris

C Set++ compiler on Solaris

Can we use C Set++ compiler on Solaris for converting 32-bit application to 64-bit? I wants to use it with lint tools for finding out the erros while porting a code. Any pointers will be helpful. (1 Reply)
Discussion started by: amit_27
1 Replies

3. Programming

compiler can't find pstatus_t even procfs.h inlcuded

Hi, I am trying to get a the process cpu usage from the /proc file recently, on the Solaris 5.10. But met some rookie issue which i need some help. for below program, compiler complains that pstatus_t is undefined, although both type are defined in the procfs.h. #include <sys/procfs.h>... (4 Replies)
Discussion started by: sleepy_11
4 Replies

4. Solaris

how to find which c/c++ compiler is used in solaris10

Dear Frnz Could you tell how to determine the c/c++ compiler version installed in the solaris 10/solaris 8. IT could be very helpful if you can tell me the pkg name also. Thanks (2 Replies)
Discussion started by: sriram.s
2 Replies

5. Programming

C compiler for Solaris 10

First off, I am all new to Unix, so when I require for help, could people please response in plain english and step by step. I am enrol in a university course to do c programming in unix environment. Thus I have downloaded the Solaris 10 Unix OS. Being Solaris, I believe it has Java... (2 Replies)
Discussion started by: Xannen
2 Replies

6. Programming

Solaris C compiler option -Xc

Anyone know what the -Xc option does? Is there an equivalent option for the Gnu compiler? :confused: (3 Replies)
Discussion started by: BCarlson
3 Replies

7. UNIX for Dummies Questions & Answers

C++ compiler for Solaris 10

Does anyone know off-hand if Solaris 10 comes with a C++ compiler, or will I have to install one (GNU, etc)? I have looked through the directories and files, but can't seem to locate anything to indicate that there is one. Thanks in advance. (1 Reply)
Discussion started by: trmn8r
1 Replies

8. Programming

C Compiler for Solaris 8 (Intel)

hi I'm looking for a C Compiler that will run on a Solaris 8 (Intel) platform and that doesn't need to be complied. I've tried gcc binaries but they don't seem to work. Thanx. (5 Replies)
Discussion started by: ianf
5 Replies

9. Shell Programming and Scripting

How to find our working compiler

Hi, I am using Turbo Linux and needs to install Samba on it. But it said that could not find gcc. My question is how to find out which compiler is working on my system. I tried echo $CC but it gave me nothing. How can I set environmental compiler to c. Thanks in advance. (8 Replies)
Discussion started by: s_aamir
8 Replies
Login or Register to Ask a Question