LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Problem with cc compiler in Solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/problem-with-cc-compiler-in-solaris-10-a-630679/)

shifter 03-26-2008 12:16 AM

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

bathory 03-26-2008 03:02 AM

You can use gcc, that is installed in /usr/sfw/bin and make a symlink to /usr/ucb/cc.

shifter 03-26-2008 07:59 AM

In fact, I installed gcc from www.sunfreeware.com, but I would like tu use default c compiler of Solaris.

bathory 03-26-2008 08:34 AM

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

Dox Systems - Brian 03-26-2008 08:39 AM

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.


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