Realize that Solaris 2.x does not come with a C compiler. Free Software Foundation's GNU Compiler Collection (gcc) is recommended. See my entry into the Sun Manager's FAQ (section 10.2) on how to do this here.