Solved

cc:Language Optional Software Package not Installed  on solaris

Posted on 1998-10-22
6
1,817 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 10 pro lost profile. 10 85
C qsort compare function issue 6 70
Can someone explain the following statement in C? 4 70
comm diff cmp unix commands 2 18
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

734 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