1. Check the package of GCC was installed or not on your Solaris 10 OS, type this command :
# pkginfo -i SUNWgcc
system SUNWgcc gcc – The GNU C compiler
Its mean that gcc compiler have been installed on your Solaris 10 OS
2. Try to execute some file using C compiler support,
# /usr/bin/ccs./make
bash: /usr/bin/./make: No such file or directory
# /usr/sfw/bin/./gmake
gmake: *** No targets specified and no makefile found. Stop.
That word indicated, your profile does not support C compiler
3. Check your profile PATH, by type :
# $PATH
bash: /usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:
/usr/platform/i86pc/sbin:/opt/sun/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin
On that word indicated that your location PATH gcc Compiler doesn’t located on your profile PATH
4. Step Enable gcc on your profile PATH
Edit the profile PATH on /etc/default/su & /etc/default/login and add text like this:
############################
PATH=/usr/bin:/usr/sfw/bin
############################
SUPATH=/usr/sbin:/usr/bin:/usr/sfw/bin
5. Restart your OS Solaris 10
Posted by rootkoe