<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><a name="_MailEndCompose"><span style='font-family:"Calibri","sans-serif";color:#1F497D'>There is no functional C compiler in Solaris.  (There exists one that is exactly adequate for relinking the kernel, and that’s it.)<o:p></o:p></span></a></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>To get Sun’s C compiler, you need PWB – Programmer’s WorkBench.  I think it has a new name… yup, “Solaris Studio”, and you no longer have to pay for it.  It’s a lot more than just a command-line compiler.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Or just download gcc from </span><a href="http://www.sunfreeware.com"><span style='font-family:"Calibri","sans-serif"'>www.sunfreeware.com</span></a><span style='font-family:"Calibri","sans-serif";color:#1F497D'>, which you’ll probably have to do anyway since most open-source software Makefiles aren’t happy with Sun’s compiler.  Note, see </span><a href="http://www.sunfreeware.com/faq.html#q4"><span style='font-family:"Calibri","sans-serif"'>http://www.sunfreeware.com/faq.html#q4</span></a><span style='font-family:"Calibri","sans-serif";color:#1F497D'>.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>If you have the Solaris Companion CD/DVD that came with some versions of Solaris, gcc may be on the disc, probably in a package called SFWgcc.  The Sun Freeware Collection and associated webpages appear to have died a typical Oracle death since the acquisition, so I can’t tell if it even exists for Solaris 10 or not.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Most people wind up installing the sunfreeware.com packages, AFAIK… they stay somewhat up to date, whereas the SFW* packages on the Sun CD are static and typically don’t get updated until the next major release of Solaris.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>-Adam Thompson<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> </span><a href="mailto:athompso@athompso.net"><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US'>athompso@athompso.net</span></a><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> roundtable-bounces@muug.mb.ca [mailto:roundtable-bounces@muug.mb.ca] <b>On Behalf Of </b>Kevin McGregor<br><b>Sent:</b> Wednesday, November 09, 2011 15:03<br><b>To:</b> MUUG Roundtable<br><b>Subject:</b> [RndTbl] Compiling (C) software for Solaris 10<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>At work here I have a &quot;SunOS cowsvpsunfire 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V490&quot; (from uname -a) with the &quot;sol_10_910_sparc&quot; disc mounted. This system appears to have no &quot;cc&quot; or &quot;gcc&quot; (according to &quot;which&quot;). Which package(s) from the CD do I need to install to have a basic C command-line compiler available? I'm trying to compile Iozone (<a href="http://iozone.org">iozone.org</a>), and the makefile run says &quot;sh: cc: not found&quot;. <o:p></o:p></p></div></div></body></html>