Thursday, July 30, 2009

cc command not found issue on Solaris 10

The cc command is used to compile C programs on Solaris 10. After much investigation, this is how I fixed the issue of "cc command not found":

1. Install Sun Studio 11. Sun Studio is available on the Sun Website
2. Set the path to SUNWspro like this:

“Export PATH=/opt/SUNWspro/bin${PATH:+:}${PATH}”

And that's it. The CC command should now work. happy compiling!!!