Compile c program on Sun Solaris OS

Can anyone tell me how to compile a c programs on SunSolaris OS 5.1 Version as gcc and cc are not working

Thanks!!!!

Why is gcc / cc not working? Can you post the errors you get while compiling or a script of the compilation session.

In getting error as gcc: not found
It means to say i have to install gcc? how to do it on remote server?

Thanks
shiva

I think u can use putty and get connected to remote machine.
after that u can install gcc if ur permitted i.e. if you have enough privileges.

Hi,

I am sorry this is not exactly the reply to the question asked, but a continuation of this question.

I have a similar situation, we have these Solaris boxes, without the development packages such as "gcc" and "cc".

What I do know about them is that they do execute the binary files created by gcc or cc.

I am not sure how to make such binary files, either by first compiling and linking on local machine and then may be using link editor so that it can distributed on any other Solaris machine.

Can anyone help me to know how can this be achieved. Can i create a binary file which doesnt require any library files from the OS rather it includes everything required to be executed as binary?