At work here I have a "SunOS cowsvpsunfire 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V490" (from uname -a) with the "sol_10_910_sparc" disc mounted. This system appears to have no "cc" or "gcc" (according to "which"). 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 (iozone.org), and the makefile run says "sh: cc: not found".
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 http://www.sunfreeware.com 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 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.
-Adam Thompson
mailto:athompso@athompso.net athompso@athompso.net
From: roundtable-bounces@muug.mb.ca [mailto:roundtable-bounces@muug.mb.ca] On Behalf Of Kevin McGregor Sent: Wednesday, November 09, 2011 15:03 To: MUUG Roundtable Subject: [RndTbl] Compiling (C) software for Solaris 10
At work here I have a "SunOS cowsvpsunfire 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V490" (from uname -a) with the "sol_10_910_sparc" disc mounted. This system appears to have no "cc" or "gcc" (according to "which"). 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 (iozone.org), and the makefile run says "sh: cc: not found".
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@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.****
-Adam Thompson****
athompso@athompso.net****
*From:* roundtable-bounces@muug.mb.ca [mailto: roundtable-bounces@muug.mb.ca] *On Behalf Of *Kevin McGregor *Sent:* Wednesday, November 09, 2011 15:03 *To:* MUUG Roundtable *Subject:* [RndTbl] Compiling (C) software for Solaris 10****
At work here I have a "SunOS cowsvpsunfire 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V490" (from uname -a) with the "sol_10_910_sparc" disc mounted. This system appears to have no "cc" or "gcc" (according to "which"). 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 ( iozone.org), and the makefile run says "sh: cc: not found". ****
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable