Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How do you install g++ (at least version 4.1) on a solaris sparc server?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

If the GNU folks don't have a Solaris package appropriate to your OS & architecture check www.sunfreeware.com -- I don't believe they have GCC 4.x, but you can grab a 3.x version and boostrap 4.x with it.

share|improve this answer

If you're using Solaris 10 or OpenSolaris, www.blastwave.org has 4.3.4 (CSWgcc4, I believe.).

share|improve this answer

You can get gcc and g++ from OpenCSW project (http://www.opencsw.org).

share|improve this answer
The current version from OpenCSW is 4.3.3. opencsw.org/packages/gcc4core –  automatthias Feb 21 '10 at 21:21
It has been upgraded to 4.6.2. –  automatthias Feb 6 '12 at 18:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.