Solved

Problem with /usr/ucb/cc on Solaris

Posted on 1998-10-26
11
466 Views
Last Modified: 2013-12-26
If I try to compile with /usr/ucb/cc (which I do want to use rather than gcc because of some course requirements) on Solaris 2.6 I get the error:
/usr/ucb/cc: language optional software package not installed

I recently have installed the latest Solaris 2.6 Patch cluster.

Looks like this is something I should know about anyhow.  Can anyone let me know what I need to install and/or configure here?

Thanks!
0
Comment
Question by:bgodden
  • 3
  • 3
  • 2
  • +3
11 Comments
 
LVL 3

Expert Comment

by:rickyr
ID: 1293815
Hi....
We asked the same question quite a while ago for Solaris 2.4.
We were told by an expert that we should buy Suns Implementation of cc.
It doesn't come with the standard OS release! (May have changed since)
Or use the gnu version (FREE).
good luck
0
 

Author Comment

by:bgodden
ID: 1293816
Ouch!  I guess I'll just use gcc, probably wait to hear if someone else has figured a way around this...  If not, I'll award you the points a little later :-)
0
 
LVL 1

Expert Comment

by:maholt
ID: 1293817
Yeah, your screwed.  As a long time Sun user I will tell you, Sun does not have a free c compiler.  This was taken out for Solaris.  SunOS had one because you had to recompile the kernel (remember that! wasn't that fun).  Since you no longer have to recompile anything to change the Solaris OS, it was taken out and packaged as a product.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 3

Expert Comment

by:braveheart
ID: 1293818
Yep, use gcc. What course requirements need you to use cc instead of gcc?
0
 
LVL 3

Expert Comment

by:elfie
ID: 1293819
you have to check the value of env variable LANG.
try setting it to C, or just remove the LANG variable
(Don't have a sun to check the correct value)
0
 
LVL 3

Expert Comment

by:braveheart
ID: 1293820
elfie that isn't going to help - the compiler just isn't there!
0
 

Author Comment

by:bgodden
ID: 1293821
bravehaert is right, the compiler is not working regardless of the value or existence of the $LANG variable.

I mainly wanted to go through the step of how cc does static linking, but oh well, not like I'd probably ever use it...
0
 
LVL 3

Expert Comment

by:braveheart
ID: 1293822
Both cc and gcc just use ld. What makes you think you'll never use static linking?  I would think that most developers use a mix of static and dynamic.
0
 

Author Comment

by:bgodden
ID: 1293823
What I mean is, I can do this with gcc as well, just wanted to practcie with cc.  Actually will get a chance top do this on an OpenStep machine.  THanks for all the comments.  How do I accept an answer if this has not been proposed by the expert?
0
 
LVL 3

Accepted Solution

by:
rickyr earned 100 total points
ID: 1293824
Ask him to re-post as an answer.
If its not me, just reject.
regards
0
 

Expert Comment

by:ydsh
ID: 1293825
The compiler(cc, for example) for Solaris does not
come together with the operating system. It is located
in another disc called "workshop" ( I cannot remember the
exact name clearly), you may install the packages from that disc.

Good luck!

0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…

777 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