Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cc:Language Optional Software Package not Installed  on solaris

Posted on 1998-10-22
6
Medium Priority
?
1,883 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
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…
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.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses

715 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