Solved

Solaris 2.6 x86: Package for cc

Posted on 1997-12-21
5
834 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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