i don't know how much help I can be as I am a newby myself but have you looked to see if you have these installed.
in terminal type:
whereis gcc or whereis cc
it should give you the path.
if it is there you could compare the paths with the values in your path variable.
If it is not there then maybe it is not installed on your machine.