From: Charles Oliver Nutter Date: 2007-05-15T02:57:39+09:00 Subject: Re: JRUBY does not find installed gem Ronald Fischer wrote: >> I don't know much about jruby, but in normal ruby (MRI) you have to >> require 'rubygems', either by adding this line to the source, running >> ruby -rubygems or setting $RUBYOPT to rubygems. > > RUBYOPT *is* set to -rubygems, so I guess it is a Jruby problem. > > As it turns out, I got an email by Jamis Buck (the author of net-ssh), > that > this package would not run with Jruby anyway, so I need to look for a > completely different solution. > > Thank you for helping, though... I wonder whether there is a specific > mailing > list devoted to compatibility issues between Ruby and JRuby. Right now, > I'm > doing a lot of trial and error, to find out what Ruby stuff happens to > work > under JRuby. Really the biggest incompatibility is anything that has a native extension. So if you go to install a gem and it gives you options for what platform to install, chances are it's not going to work. But Ruby language features should generally be very solid, and pure-Ruby code should be just fine. So if net-ssh isn't working (or is it needle?) then it's a bug we will want to fix. Can you report it please? (and the JRuby mailing lists are the best place to talk about incompatibilities and stuff...I see from your other thread you've now joined :) - Charlie