On Wed, Jan 21, 2009 at 8:06 AM, Danek Duvall <danek.duvall at sun.com> wrote: > Couldn't they just set their path to have /opt/xxx/bin before /usr/bin to > use one of however many unbundled copies they have? That would allow > /usr/bin to be the path to the bundled compilers all the time.
In a situation like this (multiple installs of a complex component), it is best if each instance is installed in its own location, with RPATH set to that location (using $ORIGIN as needed). This divorces the concept of "will it work?" from that of "what is the default". Hardcoding one particular instance of a multi-install family to only work in /usr/bin (...) ends up being an architectural blunder. If /all/ the instances are self contained that way, then choosing one to be a default is as easy as mucking with symlinks or PATH. And changing that default is just as easy. (In this thread, it seems obvious to me that all the instances of the Sun compiler are architecturally related: bundled, unbundled, express, alpha, studio.old, studio.new...) -John