well, it seems that you don't have installed any Compiler. Look at
www.sunfreeware.com and you will find a precompiled gcc package for your solaris...
when you have installed a compiler yet, you have to set the direcory to your $PATH..
# find / -name gcc -print
/usr/local/bin/gcc
# PATH=$PATH:/usr/local/bin/
greetings Preßy