olaris ships with everything you need, with the exception of the compiler itself. Solaris ships with the include files, make, an assembler, linker and libraries. All this stuff lives in /usr/ccs/bin (add it to your PATH before /usr/ucb if that’s in your PATH as well) /usr/ccs/lib and /usr/include.
If you still can’t find it, make sure you have the following packages installed on your system:
for tools (sccs, lex, yacc, make, nm, truss, ld, as): SUNWbtool, SUNWsprot, SUNWtoo, SUNWcpp for libraries & headers: SUNWhea, SUNWarc, SUNWlibm, SUNWlibms SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc, SUNWxglh, SUNWlibC, SUNWzlib, SUNWscpu for 64 bit development (in S10 these have all been merged into the non-x versions): SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox, SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx, SUNWzlibx for ucb compat: SUNWsra, SUNWsrh"
Solaris 2 FAQ Question 6.2