Solved

cc:Language Optional Software Package not Installed  on solaris

Posted on 1998-10-22
6
1,773 Views
Last Modified: 2013-12-05
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.
Brag.
0
Comment
Question by:bragkumar
  • 4
  • 2
6 Comments
 

Accepted Solution

by:
jayesh_amin earned 100 total points
ID: 1253733

Look to see if there is cc in /opt/SUNWspro/bin.
You can test it by running %/opt/SUNWspro/bin/cc
If there is one, make sure /opt/SUNWspro/bin is in your path
and that it is added before /usr/ucb (In fact, keep it first
in the path list)....or try hiding /usr/ucb/cc by renaming it as
/usr/ucb/cc.original

If there is no cc in /opt/SUNWspro/bin
    1) Purchase and install the Solaris C Compiler package.
    2) Get gcc !!

Good luck,
Jayesh
0
 

Author Comment

by:bragkumar
ID: 1253734
I need to know where i can get gcc binaries.I have downloaded from www.burn.com.But when I run gcc, it is giving error :
gcc: syntax error at line 1: `(' unexpected . I need your help.
0
 

Expert Comment

by:jayesh_amin
ID: 1253735
Try compiling a very small program (hello world type)
and see if it succeeds. Use the following syntax:

gcc -o <outputfilename> <inputCprogram>

then run the <outputfilename>

Also how did you install the gcc?

regards,
Jayesh
0
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.

 

Author Comment

by:bragkumar
ID: 1253736
Thank you Jayesh.

I have downloaded from www.burn.com.The file name is
FSFgcc.gz.

After that I uncompressed that file using gunzip -d <file> .(it gives FSFgcc) .Then used pkgadd -d FSFgcc.
---------------------------------------------------------------
I compiled  this program: gcc -o x.out x.c

/* x.c     */
#include <stdio.h>
main()
{
printf("hi");
}

brag.
It's still giving error :
gcc: syntax error at line 1: `(' unexpected

 
0
 

Expert Comment

by:jayesh_amin
ID: 1253737
What hardware platform are you running things on?
Are you sure you got the gcc binaries for the right processor?


0
 

Expert Comment

by:jayesh_amin
ID: 1253738
Try visiting the following site and choose the
correct platform and OS (sparc/intel   solaris2.5/2.6)
smc.vnet.net (I have nothing to do with them....standard
disclaimer...your own risk..etc etc)
Get the latest gcc and they also have comments and some
instructions on gcc....

good luck,
Jayesh
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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
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…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

911 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

26 Experts available now in Live!

Get 1:1 Help Now