Why are C/C++ development packages not installed on Solaris 10

I've just installed Solaris 10 x86 1106 with softwares on all five CDs installed. But there's no C++ packages on the system. No make, g++, cc etc. This is wired because I choose "Entrire" for software group during installation. Could someone tell me how to install C/C++ software development packages? Which CD are these packages in? Which C++ compiler is better for Solaris 10, sun cc or gun cc?

[405 byte] By [leonardya] at [2007-11-27 11:59:29]
# 1

gcc is in there by default. Sunstudio is far better and is in the media kit (not in yours?). All are free for download at sun.com. Check your path statement and search these forums for more specific info. Sunstudio also comes with an IDE that people seem to like.

kjard_usa at 2007-7-29 19:25:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Thanks for the reply, kjard_us.

What do you mean "gcc is in there by default"?

When I type gcc in a terminal:

bash-3.00$ gcc

bash: gcc: command not found.

What is the media kit? There are only five .zip files and a language CD in Solaris 10 download page. I downloaded the five .zip files and burned them to CDs.

leonardya at 2007-7-29 19:25:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

That is why you need to check your path statement echo $PATH

Try pkginfo | grep gcc at the command line. That will show you if the package is installed.

The utilities are spread around in a variety of spots like /usr/sfw/bin and /opt/csw/bin and /usr/ccs etc.

I thought you had the media kit sun sends out, what you downloaded would not contain sunstudio. I suggest you download it from sun.com. After you do that you need to add the correct path to your .profile or .bashrc files.

this is an example of what my .bashrc looks like. If your statements do not point to the right places in the order anticipated by the compiler you will get errors.

MAIL=/usr/mail/${LOGNAME:?}

PATH=$PATH:/usr/ccs/bin:/opt/csw/bin:/usr/sfw/bin:/usr/dt/bin/:/opt/SUNWut/bin/ :/opt/SUNWspro/bin

PS1="[\u@\h:\W]>"

This path seems to work very well when I am compiling

/usr/bin:/opt/SUNWspro/bin/:/usr/ccs/bin

/opt/SUNWspro/bin is the location of the sunstudio compilers. I do not use gcc on my sun machines since suns compilers are probably 'tuned' to solaris.

I have compiled a pile of the normal apps and have only had issues with the path statements. (Search the forums).

Another place to go for software is blastwave.org and sunfreeware.com

Both have an apt-get like application pkg-get that works quite well but I only use it for xmms and other oddities.

kjard_usa at 2007-7-29 19:25:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

> The utilities are spread around in a variety of spots

> like /usr/sfw/bin

Bundled with Solaris

> and /opt/csw/bin

These are from Blastwave, you have to install these manually via their pkg-get utility

>and /usr/ccs etc.

These are the utility programs that the compiler uses to make a binary.

alan

alan.paea at 2007-7-29 19:25:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...