Solved

cc:Language Optional Software Package not Installed  on solaris

Posted on 1998-10-22
6
1,755 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
Comment Utility

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
Comment Utility
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
Comment Utility
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
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:bragkumar
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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

771 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

11 Experts available now in Live!

Get 1:1 Help Now