LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices


Reply
  Search this Thread
Old 03-26-2008, 12:16 AM   #1
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Rep: Reputation: 30
Unhappy Problem with cc compiler in Solaris 10


I written a little C program and I would like to run it, but output is the follows:

# cc myprogram.c -o myprogram
/usr/ucb/cc: language optional software package not installed
#

What is this package? Can anyone help me!

Thanks in advance,
Savio
 
Old 03-26-2008, 03:02 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,143

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
You can use gcc, that is installed in /usr/sfw/bin and make a symlink to /usr/ucb/cc.
 
Old 03-26-2008, 07:59 AM   #3
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Original Poster
Rep: Reputation: 30
In fact, I installed gcc from www.sunfreeware.com, but I would like tu use default c compiler of Solaris.
 
Old 03-26-2008, 08:34 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,143

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
There was no need to install it from sunfreeware, since it comes by default in solaris under the /usr/sfw/bin directory.
Anyway if you want the Sun's cc you'll need the Sun Studio (that I think it's not absolutely free), or Sun Studio Express
 
Old 03-26-2008, 08:39 AM   #5
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Just to try and expand on bathory's reply a little more:

gcc *is* the default Solaris compiler, and is included by default (no need to download from sunfreeware.com)...

cc is part of the Sun Studio package (an separate program), which last time I checked was now available completely for free.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
Is GCC compiler included in Solaris Express Developer Edition 1/08 ? LinuxNewbie999 Solaris / OpenSolaris 2 03-25-2008 09:55 AM
Compile perl-5.8.8 on Solaris 9 using Sun C compiler SteveK1979 Solaris / OpenSolaris 0 11-24-2007 10:06 AM
Compiler in Solaris 10? noxious Solaris / OpenSolaris 2 03-23-2006 08:22 PM


All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration