Solved

Solaris 2.6 x86: Package for cc

Posted on 1997-12-21
5
848 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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 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.
Suggested Courses

734 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