Closed jfirebaugh closed 13 years ago
A patch wrapping gem "ruby-debug" under platform :ruby is welcome. :)
Unfortunately I couldn't get much further due to a JRuby bug: http://jira.codehaus.org/browse/JRUBY-5183
Hmm, :platforms => : ruby_18 does apparently not work how I would expect or is buggy. It still tries to install ruby-debug dependencies on 1.9.2.
Ah, bundler 1.0.0 bug. It works with 1.0.3.
Optionally, you might specify:
gem "ruby-debug", "0.10.3", :platform => :jruby
gem "ruby-debug", :platform => :ruby
instead, until ruby-debug-base
0.10.4 is released for JRuby.
Unless I'm missing something, ruby-debug is not installable on JRuby at any version:
$ gem install ruby-debug -v 0.10.3
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
/Users/jfire/.rvm/rubies/jruby-1.5.5/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
extconf.rb:16: undefined method `create_makefile' for main:Object (NoMethodError)
John,
You're somehow missing ruby-debug from your RVM installation of JRuby.
Not sure why RVM didn't do that, but you can follow the instructions in http://debug-commons.rubyforge.org/ to fix that.
More details from http://debug-commons.rubyforge.org/ Installation (j)ruby-debug-base is available as a Ruby gem. Unfortunately it is still not installable remotely. But installation is easy enough:
manually download the ruby-debug-base-0.10.3.1-java.gem to your local directory (grab from http://rubyforge.org/frs/?group_id=3085) install the Gem into your JRuby Gem repository: jruby -S gem install ruby-debug-base-0.10.3.1-java.gem now install ruby-debug with: jruby -S gem install --ignore-dependencies ruby-debug
Due to 'ruby-debug' gem not being installable on JRuby. Removing the
gem "ruby-debug"
line makesbundle install
work.