Install GCC on Solaris 8

Hi,

I tried to install apache web server on solaris 8 and was prompted that i do not have any valid compiler.

I tried to install GCC on solaris 8 using the command
#pkgadd -d gcc-2.95.2-sol17-sparc-local (hit enter). May I know how I should set the environment variables to make it work fine?

Thanks.

What is happening after you 'hit enter' to install the GCC? Are there any errors?