I've done a lot of Java programming on Unix, but I'm having difficulty figuring out how to compile a C program. I have Mac OS X and am using Unix. I am just trying to write a very basic "hello world" type program, so I did "emacs hello.c", typed a few lines for the program, saved, and then tried to compile using "cc hello.c" or gcc hello.c". The result was "-bash: gcc: command not found".
Do I have to download something in order to be able to compile, or is there something else I should try? Thanks in advance for any help.
Tags: