Rubygems 1.3.6 for jruby broken?

I just updated my jruby to rubygems 1.3.6 but the jgem no longer works:

$jgem -v

$jgem update --system

Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.6
Updating RubyGems to 1.3.6
Installing RubyGems 1.3.6
RubyGems 1.3.6 installed

$jgem install bundler
/Users/tcc/bin/jruby/bin/jgem: line 8: require: command not found
/Users/tcc/bin/jruby/bin/jgem: line 9: require: command not found

$jruby --version
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java
HotSpot™ 64-Bit Server VM 1.6.0_17) [x86_64-java]

Is this a known problem or is it a problem local to my setup? I’m on mac

Tommy C.
Programmer and UC Irvine Graduate Student
Twitter @tommychheng

To unsubscribe from this list, please visit:

This is a known problem with the update process. It puts the full path
to the “jruby” executable into the shebang line of the gem/jgem
script. Replace the top line of those scripts with this:

#!/usr/bin/env jruby

And it should work just fine!

Note also that this should no longer be a problem with the native
JRuby launcher (gem install jruby-launcher).

  • Charlie

On Tue, Apr 6, 2010 at 1:46 AM, Tommy C. [email protected]

Updating RubyGems to 1.3.6

To unsubscribe from this list, please visit:

To unsubscribe from this list, please visit: