Why doesn't /usr/bin/cc work?

Why doesn't /usr/bin/cc work?

Because it's just a front-end "stub" for the unbundled C compiler
sold by Sun (SunPro C).
You can also get the free GNU C compiler, gcc, in pkg add format
from various locations,
including
the Solaris Software Companion CD and
http://www.sunfreeware.com/.
If you install gcc, I recommend that you rename or compress
/usr/bin/cc and softlink (ln -s) /usr/local/bin/gcc
(or /opt/sfw/bin/gcc or wherever it is) to /usr/bin/cc.
By default, Solaris comes with support tools (such as make and libraries)
in /usr/ccs/bin, /usr/ccs/lib and usr/include.
If not, add the appropriate packages.
For more information, see the "Software Development" section in
Casper Dik's Solaris 2 FAQ.





Home
FAQ