I'm not doing much Solaris any more, but it makes life a lot easier if you
install all the gnu packages (gcc, binutils, coreutils, etc) and make sure
that your systems all hit them first. You can also find them in /opt/sfw
but that's usually a much older version.
Open source SW is overwhelmingly developed under linux these days, so
unless you've got a strong reason for keeping the Sun/Oracle stuff first
(like, running a lot of in-house code that requires Sun/Oracle compilers,
or systems that are super locked down), going GNU-ish will just make your
life much saner.