Bugs item #26892, was opened at 2009-08-07 12:16
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=26892&group_id=126
Category: `gem install` command (extensions)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jake Douglas (yakischloba)
Assigned to: Nobody (None)
Summary: Gem::Ext::RakeBuilder can't execute Rake on JRuby if Rake gem isn't
installed
Initial Comment:
On JRuby, when installing a gem that has 'extensions = "Rakefile"' as part of
it's specification, Gem::Ext::RakeBuilder tries to run 'jrake' which does not
exist in JRuby. This occurs when the actual Rake gem is not installed. This can
be worked around by requiring the rake gem as a dependency, but the desired
behavior would be for it to find the rake that is bundled with JRuby.
This line, in the "1.8" compatible rubygems, is the culprit:
cmd = ENV['rake'] || "#{Gem.ruby} -rubygems #{Gem.bin_path('rake')}" rescue
Gem.default_exec_format % 'rake'
In the "1.9" rubygems, its like this:
cmd = ENV['rake'] || 'rake'
which probably wouldn't work either unless JRuby is the default Ruby or the
JRuby rake points it to the jruby executable.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=26892&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers