Tony Eichelberger
Tony Eichelberger

Reputation: 7142

Should jruby-complete.jar come with rubygems?

I am experimenting with jruby-complete.jar and am getting some inconsistent behavior accross different operating systems.

On OS X 10.7 & 10.6 I tried downloading the jruby-complete-1.6.7.jar and running:

java -jar jruby-complete-1.6.7.jar -S gem list -l

I get an error:

LoadError: no such file to load -- rubygems
  require at org/jruby/RubyKernel.java:1033
   (root) at /usr/bin/gem:8

So I tried the same thing on a Windows 7 machine:

*** LOCAL GEMS ***

rake (0.8.7)
sources (0.0.1)

Both the OS X machine and the Windows machine are running java version "1.6.0_29". I do not have any ruby installations on the Windows 7 machine, but the OS X machines both have ruby installed.

What would be causing this to not work on OS X but it works on Windows?

Upvotes: 0

Views: 796

Answers (1)

Robert Brown
Robert Brown

Reputation: 11026

Try setting the RUBYOPT shell variable to rubygems on your OSX box:

export RUBYOPT=rubygems

...and try again

Upvotes: 1

Related Questions