Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cc:Language Optional Software Package not Installed  on solaris

Posted on 1998-10-22
6
Medium Priority
?
1,909 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Hire Technology Freelancers with Gigs

Work with 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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
Suggested Courses

972 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