What is the best way to manage gems on a box (OSX Leopard) that will
run both MRI and JRuby? Do you install JRuby gems separately under
JRuby’s gem home? How do people manage your GEM_HOME and GEM_PATH?
Do you manage them to only include the JRuby gem home? Do you use
~/.gemrc? Symlinks? Wrapper scripts? Something else? Links to good
docs or articles are welcome…
My first attempt was to put JRuby’s home as gem_home in ~/.gemrc just
for trying out Rails under JRuby. This failed badly though - OSX puts
the (very outdated) system gems on the GEM_PATH, which meant I picked
up fastthread 1.0.1, which caused the Rails server startup hung in an
endless loop with no mention of fastthread in debug output (jruby irc
kindly helped me debug with dtrace). To avoid problems like that in
the future, I want to only use MRI gem home with MRI, and only JRuby
gem home with JRuby, and ideally have both working at the same time
and not have to manually switch anything. Possible?
Thanks,
– Chad
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email