[RndTbl] Compiling (C) software for Solaris 10

Peter O'Gorman peter at pogma.com
Thu Nov 10 08:44:33 CST 2011

Iozone compiles without problems with Solaris Studio 12.2., I didn't try 
running it though :)

In case you want to install other stuff, sunfreeware isn't the only 
supplier of open source package collections for solaris, others include:

And if you want to pay for your free software (shameless plug for employer):

If you still have issues, and you trust me lots, I can just send you 
binaries for iozone.


On 11/09/2011 10:08 PM, Adam Thompson wrote:
> /usr/sfw/bin or /opt/sfw/bin depending on the version.
> And that is standard gcc, although probably a bit old.
> You should be good from here, unless you also have to add /usr/ccs/bin to pick up as and ld.
> -Adam
> Kevin McGregor<kevin.a.mcgregor at gmail.com>  wrote:
>> 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's
>> not in the path. Is that normal? Or should I give up and go to
>> sunfreeware.com? By the way, the makefile I'm using from the iozone tar
>> file lists numerous platforms including several for Solaris (32-&  64-bit,
>> Solaris 8, 9, 10, cc, gcc...) so I thought it should work with whatever
>> compiler is available for Solaris.
>> On Wed, Nov 9, 2011 at 3:20 PM, Adam Thompson<athompso at athompso.net>  wrote:
>>> There is no functional C compiler in Solaris.  (There exists one that is
>>> exactly adequate for relinking the kernel, and that’s it.)****
>>> 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.****
>>> Or just download gcc from www.sunfreeware.com, which you’ll probably have
>>> to do anyway since most open-source software Makefiles aren’t happy with
>>> Sun’s compiler.  Note, see http://www.sunfreeware.com/faq.html#q4.****
>>> ** **
>>> 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.****
>>> ** **
>>> 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.****

More information about the Roundtable mailing list