On Tuesday 22 December 2009, Jeroen van Meeuwen wrote:
- Use the alternatives system to point to one stack or the other for
the
system default stack (think standalone applications).
Not that I'm anywhere near an expert in ruby matters, but I have some (bad)
experience with alternatives, so:
If this means running different individual applications with different
stacks/stack versions, I strongly suggest reconsidering using the alternatives
system for that. Alternatives is for (easily) changing the system default
stack, not at all for changing per-application ones. And getting it right is
not an easy task. FWIW in fact I'd recommend not doing any alternatives stuff
unless there are very strong, valid reasons for doing so. We have an example
with the current Java alternatives system in Fedora which in my opinion no
longer has any real benefits but rather has a negative net effect and it'd be
good to start planning for getting rid of it altogether.
On the other hand, if I got your intent right, environment-modules might be
something to look into here.