LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   GCC in Mixed Environment (http://www.linuxquestions.org/questions/solaris-opensolaris-20/gcc-in-mixed-environment-708642/)

popowich 03-02-2009 01:42 PM

GCC in Mixed Environment
 
Hello,

I have an environment with both Solaris 8 and Solaris 10 servers. They were all Solaris 8 and for a while now I've been working to get them all up to Solaris 10. I'm starting to run into the problem where enough of the servers are Solaris 10 that I'm building on 10 when I can, but I seem to have having some gcc troubles with open source software such as php. I have a shared /usr/local across all of the servers. I'm wondering if it's best to overwrite the existing /usr/local gcc version 2.95.3 20010315 (release) with gcc 3.4.6 for Solaris 8 from sunfreeware.com, or to try to build and install gcc 3.4.6 specifically for Solaris 10+ in a separate directory. Are there any gotchas that I should be aware of with either change? I am OK with replacing the current version with a current /usr/local package for Solaris 8 and then overwriting again with a built for Solaris 10 someday when all of the servers have been upgraded.

-Raymond

jlliagre 03-02-2009 03:10 PM

Why aren't you using the gcc version released with Solaris 10 and newer (/usr/sfw/bin/gcc) ?
It doesn't interfere with /usr/local stuff.

popowich 03-02-2009 03:35 PM

Wow. I did not realize that was there.

That was not in my path and did not show up in a whereis gcc

I'll give that one a shot, thanks!

-Raymond


All times are GMT -5. The time now is 05:14 PM.