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 |
You can use gcc, that is installed in /usr/sfw/bin and make a symlink to /usr/ucb/cc.
|
In fact, I installed gcc from www.sunfreeware.com, but I would like tu use default c compiler of Solaris.
|
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 |
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. |