Link to home
Start Free TrialLog in
Avatar of Rumata
Rumata

asked on

Solaris 2.6 x86: Package for cc

I just fresh installed Solaris and am having trouble with
running cc:

When I try it, it sais:
/usr/ucb/cc:  language optional software package not installed    


Now I installed lots of different packages already. However,
in the man page it sais, that cc is part of the SPROcc package, which is located in SUNWspro.

However, on the installation CD I don't see neither one.

Any help would be greatly appreciated, since I am stuck,
because I can't compile anything.

Thanks.

Rumata
Avatar of dgraves
dgraves

cc was removed from solaris a long time ago.  If you want it you must purchase it seperately from Sun.

But...  

There is NO reason to use cc.  gcc, which is free from the gnu software foundation is used more than cc, and is probably better than cc because it is in such wide use.  I have used it for 2 years, compiled hundreds of programs with it.

ftp to prep.ai.mit.edu -- this is a repository for gnu software.  There you'll find almost every program that you could want with regards to unix, as well as pre-compiled and uncompiled versions of gcc.

What you'll do if there isn't a binary for 2.6 yet is to download an older version of gcc and use it to compile the latest version of gcc source code.  There MAY already be an X86 version of gcc for 2.6

You may also be able to find a "package" of gcc.  This uses Sun's "pkgadd" facility to install the gcc compiler.  With this version, you simply can't get it wrong.  Typically, packages start with the title "FSF".  Look for something like FSFgcc.x


Avatar of Rumata

ASKER

dgraves,

I ftp'ed to the mit.edu and looked in the /pub/gnu, but all
the gcc's I see there are gziped. I dont' have gunzip yet, and can't get it since I need to compile it. ;)

Besides, I think that all of gcc's there are source codes. Where do I find the binaries?

Thanks.


Avatar of Rumata

ASKER



Trust me, it's there -- an unzipped version waiting for you to run it.

I have 5 unix boxen -- all running gcc -- all retrieved from this site.
ASKER CERTIFIED SOLUTION
Avatar of n0thing
n0thing
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial