Solved

Solaris 2.6 x86: Package for cc

Posted on 1997-12-21
5
826 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:Rumata
  • 2
  • 2
5 Comments
 

Expert Comment

by:dgraves
Comment Utility
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


0
 

Author Comment

by:Rumata
Comment Utility
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.


0
 

Author Comment

by:Rumata
Comment Utility


0
 

Expert Comment

by:dgraves
Comment Utility
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.
0
 
LVL 5

Accepted Solution

by:
n0thing earned 200 total points
Comment Utility
Hi,

   Solaris doesn't come with a C Compiler anymore. However, you
could check on http://www.burn.com. It does have some binaries
for Solaris x86 like gzip and link to more precompiled binaries.
Including gcc and more.

Good luck,
Minh Lai
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now