I dunno about cc. I installed it a long time ago and cannot figure out how I did it. Ubuntu has an awesome software management utility called synaptic. To launch it select in the top left menu "System -> Administration -> Synaptic Package Manager"
In almost any case, the gcc compiler is plenty good to compile your C/C++ stuff. Sometimes a lot of make builds ask for the location of the C Compiler and you can usually get by with this:
Code:
export CC="/usr/bin/gcc"
So if I were going to download and build something from source I would do something like this.
Code:
#######download your program.tar.gz file
$ gzip -d program.tar.gz
$ tar -xf program.tar
$ rm program.tar ##### delete the download file after you unpack it. Only if you want to, you can keep it - makes no difference
$ cd program_directory
$ ./configure
$ export CC="/usr/bin/gcc"
$ make
$ sudo make install
But don't forget to check synaptic for your program before you build a copy from source. Synaptic keeps track of all installed files, makes upgrading programs way easy, and allows you to safely delete the program and keep your system from descending into the 9th level of dependency hell.
EDIT: Didn't see the previous post until after I submitted, but Binary's suggestion is a better one.