On Sat, Sep 27, 2008 at 06:35:01PM -0700, Alex wrote:
> if someone knows how to get a c compiler on to opensolaris or weither i
> have one on here already and why its not working... i just installed
> this 24 hours ago.
$ pkg search -r cc
INDEX ACTION VALUE PACKAGE
...
basename link opt/SunStudioExpress/bin/cc pkg:/sunstudioexpress at
0.2008.5-0.86
...
basename file opt/SunStudioExpress/prod/bin/cc pkg:/sunstudioexpress
at 0.2008.5-0.86
$ pkg list -a \*gcc\*
NAME (AUTHORITY) VERSION STATE UFIX
SUNWgcc 3.4.3-0.98 known ----
...
SUNWgccruntime 3.4.3-0.98 known ----
...
gcc-dev 0.5.11-0.86 known u---
...
$ pkg search -r gcc
INDEX ACTION VALUE PACKAGE
...
description set GCC pkg:/SUNWgccruntime at
3.4.3-0.98
...
description set gcc pkg:/SUNWgcc at 3.4.3-0.98
...
basename dir usr/sfw/lib/gcc pkg:/SUNWgcc at 3.4.3-0.98
...
basename link usr/bin/gcc pkg:/SUNWgcc at 3.4.3-0.98
...
basename dir usr/sfw/libexec/gcc pkg:/SUNWgcc at 3.4.3-0.98
...
basename hardlink usr/sfw/bin/gcc pkg:/SUNWgcc at 3.4.3-0.98
Hence,
# pkg install sunstudioexpress
or
# pkg install SUNWgcc
should get you a compiler. It's recommended, however, that you install
ss-dev or gcc-dev, since those will bring in headers and other things like
make that are generally needed for C compilation environments.
Danek