PDA

View Full Version : c compiler



saif76
May 30th, 2006, 05:05 PM
hi
can any one tell me how to use the c compiler in ubuntu unix.
i have used red hat linux , in that for compiling a c program all i have to do is use the command " $ cc sample.c " , but when i use this in ubuntu i get and error saying no command cc exists . pls help

bruce89
May 30th, 2006, 05:06 PM
sudo apt-get install build-essential

nanotube
May 30th, 2006, 05:13 PM
and just to explain further, that build-essential package will install a bunch of software building tools, the compiler among them.

thumper
May 30th, 2006, 09:00 PM
cc then exists as a symlink to gcc