gem install doesn't create BAT files on Windows Server 2008 and 2003 using JRuby 1.5.5

Bulkan Evcimen's Avatar

Bulkan Evcimen

03 Dec, 2010 12:41 AM


I've created an issue in github without realizing that there is this support forum.

I've been trying to install Gem Bundler and RSpec on Windows Server 2008, I get the following output

jgem install bundler JRuby limited openssl loaded. gem install jruby-openssl for full support. Successfully installed bundler-1.0.7 1 gem installed Installing ri documentation for bundler-1.0.7... Installing RDoc documentation for bundler-1.0.7...

but when I try to run bundle install I get

'bundle' is not recognized as an internal or external command, operable program or batch file.

looking further I've worked out the BAT file bundle.bat is not created in c:/jruby-1.5.5/bin. Looking at the rubygems code I've found that the following happens on Windows Server 2008.

require "rubygems" Gem.win_platform? false

Where as the above returns true on Windows 7. The following is my gem env

`jgem env RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.8.7 (2010-11-10 patchlevel 249) [java] - INSTALLATION DIRECTORY: c:/jruby-1.5.5/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/jruby-1.5.5/bin/jruby.exe - EXECUTABLE DIRECTORY: c:/jruby-1.5.5/bin - RUBYGEMS PLATFORMS:

- ruby
- universal-java-1.6
    • c:/jruby-1.5.5/lib/ruby/gems/1.8
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
    • "install" => "--env-shebang"
    • "update" => "--env-shebang"


  1. 1 Posted by Luis Lavena on 11 Dec, 2010 03:05 PM

    Luis Lavena's Avatar


    The issue you're reporting is a JRuby problem with Windows 2008, which was fixed in 1.5.6

    The bug report:

    Closing this out as is JRuby issue, not RubyGems.

    Thank you for your report.

  2. Luis Lavena closed this discussion on 11 Dec, 2010 03:05 PM.

  3. Bulkan Evcimen re-opened this discussion on 12 Dec, 2010 10:18 PM

  4. 2 Posted by Bulkan Evcimen on 12 Dec, 2010 10:18 PM

    Bulkan Evcimen's Avatar


    Thanks for the info. I had a quick look at JRuby's JIRA but didn't see anything before I posted here. The latest release then was 1.5.5.

    Thanks again for the reply.

  5. Nick Quaranto closed this discussion on 18 Dec, 2010 04:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac