Solved

Solaris 2.6 x86: Package for cc

Posted on 1997-12-21
5
830 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
ID: 1812819
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
ID: 1812820
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
ID: 1812821


0
 

Expert Comment

by:dgraves
ID: 1812822
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
ID: 1812823
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

920 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

14 Experts available now in Live!

Get 1:1 Help Now