Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

locating c compiler on solaris 10 u 8

7,345 views
Skip to first unread message

Chris Eckert

unread,
Feb 20, 2011, 7:30:41 PM2/20/11
to
hi all,

where is the standard c compiler (cc) located on solaris 10 u 8?

thanks for your help

chris

--
Chris Eckert (mobile)

Ian Collins

unread,
Feb 20, 2011, 7:47:00 PM2/20/11
to
On 02/21/11 01:30 PM, Chris Eckert wrote:
> hi all,
>
> where is the standard c compiler (cc) located on solaris 10 u 8?

Nowhere unless you install it!

gcc can be found under /usr/sfw/bin/

--
Ian Collins

ji...@specsol.spam.sux.com

unread,
Feb 20, 2011, 8:07:36 PM2/20/11
to
Chris Eckert <eck...@alphanet.ch> wrote:
> hi all,
>
> where is the standard c compiler (cc) located on solaris 10 u 8?
>
> thanks for your help
>
> chris

It isn't located anywhere unless you install one.

You should find gcc in /usr/sfw/bin if the Sun Freeware packages were
installed or in /opt/sunstudio??? if some version of SunStudio was
installed.

--
Jim Pennino

Remove .spam.sux to reply.

Paul Floyd

unread,
Feb 21, 2011, 5:03:57 PM2/21/11
to
On Mon, 21 Feb 2011 01:07:36 -0000, ji...@specsol.spam.sux.com
<ji...@specsol.spam.sux.com> wrote:
> Chris Eckert <eck...@alphanet.ch> wrote:
>> hi all,
>>
>> where is the standard c compiler (cc) located on solaris 10 u 8?
>>
>> thanks for your help
>>
>> chris
>
> It isn't located anywhere unless you install one.
>
> You should find gcc in /usr/sfw/bin if the Sun Freeware packages were
> installed or in /opt/sunstudio??? if some version of SunStudio was
> installed.

The latest Oracle compiler (Solaris Studio 12 Update 2, still holding
off on an unlucky 13th version), installs to /opt/solstudio by default.
It will also install symlinks to things like CC and cc, in /usr/bin.

A bientot
Paul
--
Paul Floyd http://paulf.free.fr

Anonymous

unread,
Feb 22, 2011, 3:23:15 AM2/22/11
to
> > It isn't located anywhere unless you install one.

That is not correct. The default installation (without the companion CD)
installs gcc-3.4.3 in /usr/sfw

Chris Eckert

unread,
Feb 22, 2011, 5:01:03 PM2/22/11
to
ok. is solstudio a component available for download? why is it not part of
the standard distribution?

thanks
chris

Paul Floyd <ro...@127.0.0.1> wrote:

> The latest Oracle compiler (Solaris Studio 12 Update 2, still holding
> off on an unlucky 13th version), installs to /opt/solstudio by default.
> It will also install symlinks to things like CC and cc, in /usr/bin.

--
Chris Eckert (mobile)

Chris Eckert

unread,
Feb 22, 2011, 5:01:03 PM2/22/11
to
thanks, i also found gcc in the sfw repository.

however, what i meant was the location of solaris' own c compiler.

chris

Ian Collins <ian-...@hotmail.com> wrote:
> Nowhere unless you install it!
> gcc can be found under /usr/sfw/bin/

--
Chris Eckert (mobile)

ji...@specsol.spam.sux.com

unread,
Feb 22, 2011, 5:27:13 PM2/22/11
to
Chris Eckert <eck...@alphanet.ch> wrote:
> ok. is solstudio a component available for download? why is it not part of
> the standard distribution?
>
> thanks
> chris

Several decades ago the standard distribution included the compiler and tools.

Large volume buyers neither needed nor wanted a compiler on all their
machines so bitched for it to be unbundeled and a price break.

So Sun complied and other people bitched because the compiler wasn't
bundled and cost money.

So today we have the situation we have.

Chris Eckert

unread,
Feb 22, 2011, 5:58:56 PM2/22/11
to
you want to say solstudio is sold for money?

--
Chris Eckert (mobile)

hume.sp...@bofh.ca

unread,
Feb 22, 2011, 6:55:48 PM2/22/11
to
Chris Eckert <eck...@alphanet.ch> wrote:
> you want to say solstudio is sold for money?

It used to be. It's free now.

Remember, even back when a C compiler was included, it was ONLY included
because it was needed to compile the kernel to suit the hardware or to make
tuning changes. The compiler was only meant for that purpose, and frequently
it was the bare minimum required to do so.

When people stopped compiling kernels, it stopped making sense to bundle
the compiler.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

ji...@specsol.spam.sux.com

unread,
Feb 22, 2011, 7:00:43 PM2/22/11
to

Not today, though for a while whatever they called it back then cost
money and depended on how many simulataneous users you wanted to have.

Doug McIntyre

unread,
Feb 22, 2011, 11:40:27 PM2/22/11
to
hume.sp...@bofh.ca writes:
>Chris Eckert <eck...@alphanet.ch> wrote:
>> you want to say solstudio is sold for money?

>It used to be. It's free now.

>Remember, even back when a C compiler was included, it was ONLY included
>because it was needed to compile the kernel to suit the hardware or to make
>tuning changes. The compiler was only meant for that purpose, and frequently
>it was the bare minimum required to do so.

>When people stopped compiling kernels, it stopped making sense to bundle
>the compiler.

And even way back when it was bundled in SunOS 4, it was a pre ANSI compiler,
and it was a bit odd, even back then, as the world had moved on. So it
was more useful to bootstrap GCC than being used as a general compiler.

The compiler that was bundled into HP/UX for compiling the kernel was
even more bizare and restricted than the SunOS one though.

Chris Eckert

unread,
Feb 23, 2011, 2:07:55 AM2/23/11
to
ok, that's interesting. thanks all.

so, where can i get the "official" solaris cc for free?

thanks
chris


--
Chris Eckert (mobile)

Chris Ridd

unread,
Feb 23, 2011, 2:12:37 AM2/23/11
to
On 2011-02-23 07:07:55 +0000, Chris Eckert said:

> ok, that's interesting. thanks all.
>
> so, where can i get the "official" solaris cc for free?

From
<http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html>

--


Chris

0 new messages