Solved

C Compiler Setup at Solaris7, which way should I go?

Posted on 2003-11-17
6
296 Views
Last Modified: 2013-12-27
Hello!   Everyone,

I just recently loaded Solaris7 on SS10 for my training, and looked for "cc".   Alors, no "cc" came with the System software.   /usr/ucb/cc was found, but it was a script which pointed to /usr/ccs/bin/ucbcc, and there was no "ucbcc" in the desginated directory.   Thus, "cc" doesn't work, of course.   I may just need a good old "cc" for my some trials, and it must be fundamantal.   Yet still I have a trouble finding it.   What do you think?   I have Borland C++4.5 CDs, but they are for DOS and Windows.   Sun's big software package cost $995.   I just need a simple C and/or C++ only.   Thank you for your help!

Mitsuru

0
Comment
Question by:mkido
6 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9762757
gcc - download from www.sunfreeware.com
0
 
LVL 6

Expert Comment

by:durindil
ID: 9763172
download gcc 2.95.  It is much smaller than 3 and works for almost everything you would want to compile in Solaris 7.
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 100 total points
ID: 9764074
Yes, some fraudulent waste of oxygen at Sun decided to start omitting the C compiler from Solaris about v2.3 or so. As liddler suggests, the preferred package is the GNU Compiler Collection (gcc). Since you lack a C compiler, you'll need the pre-built binaries, and they are available on sunfreeware.com. Don't bother downloading the sources, just grab the binaries, and install them using pkgadd. The package is built for them to go into /usr/local
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:mkido
ID: 9768791
Thank you all.   PsiCop is true, because I don't have C compiler, I even can't compile gcc souce code.   I need to grab the pre-built binaries.   Let me see.   I haven't connected my SS10 to ethernet, so give me some time.   I don't close this session now, for I can ask something a little later.   Bye now.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 9771189
mkido,

The EE culture is that once your Question has been Answered completely, you should close it an award points to the Expert(s) who Answered it. If you wish to ask further Questions, it generally considered bad form to ask one in an existing Question you've left open (unless you're just seeking clarification of the Answer).
0
 

Author Comment

by:mkido
ID: 9883165
Hello!  Many Thank.   I will open and close more quickly in future.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Configuring EMC Clariion on Solaris 10 5 68
Expiration of TSM data 17 88
Host issue and need to move VM's 2 222
NTP Server in VMware 5 115
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now