I did a ls *gcc* on the package directory of the CD I mentioned, and it showed SUNWgcc, so I installed that. It did seem to install it, but it&#39;s not in the path. Is that normal? Or should I give up and go to <a href="http://sunfreeware.com">sunfreeware.com</a>? By the way, the makefile I&#39;m using from the iozone tar file lists numerous platforms including several for Solaris (32- &amp; 64-bit, Solaris 8, 9, 10, cc, gcc...) so I thought it should work with whatever compiler is available for Solaris.<br>
<br><div class="gmail_quote">On Wed, Nov 9, 2011 at 3:20 PM, Adam Thompson <span dir="ltr">&lt;<a href="mailto:athompso@athompso.net">athompso@athompso.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><a name="1338a3424a8a6d36__MailEndCompose"><span style="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.)<u></u><u></u></span></a></p>
<p class="MsoNormal"><span style="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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Or just download gcc from </span><a href="http://www.sunfreeware.com" target="_blank"><span>www.sunfreeware.com</span></a><span style="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" target="_blank"><span>http://www.sunfreeware.com/faq.html#q4</span></a><span style="color:#1F497D">.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1F497D">Most people wind up installing the <a href="http://sunfreeware.com" target="_blank">sunfreeware.com</a> 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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">-Adam Thompson<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span><a href="mailto:athompso@athompso.net" target="_blank"><span style="font-size:11.0pt">athompso@athompso.net</span></a><span style="font-size:11.0pt;color:#1F497D"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></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">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:roundtable-bounces@muug.mb.ca" target="_blank">roundtable-bounces@muug.mb.ca</a> [mailto:<a href="mailto:roundtable-bounces@muug.mb.ca" target="_blank">roundtable-bounces@muug.mb.ca</a>] <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<u></u><u></u></span></p></div></div><div class="im"><p class="MsoNormal"><u></u> <u></u></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&#39;m trying to compile Iozone (<a href="http://iozone.org" target="_blank">iozone.org</a>), and the makefile run says &quot;sh: cc: not found&quot;. <u></u><u></u></p>
</div></div></div></div><br>_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
<br></blockquote></div><br>