Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ruby-debug can't be installed on JRuby

#4828

ruby-debug is included in the Gemfile for JRuby which causes the following on bundle install (in rails source):


WARNING: JRuby does not support native extensions or the `mkmf' library.
         Check http://kenai.com/projects/jruby/pages/Home for alternatives.

The full output is here => http://pastie.org/1000314

Removing ruby-debug from the Gemfile works. I don't know if there is an alternative to ruby-debug for JRuby. In case there isn't I've made a patch that removes ruby-debug for JRuby engine.

P.S Also in an app, gem sqlite3-ruby cannot be build, the alternative is to use gem 'activerecord-jdbcsqlite3-adapter' — but that needs to be done manually by the user I guess?

Reported by Rohit Arondekar · June 11th, 2010 @ 03:41 AM

State: invalid
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid

    You should follow the instructions here http://kenai.com/projects/jruby/pages/UsingTheJRubyDebugger to make it work.
    Thank you for reporting ;).

    June 13th, 2010 @ 05:18 AM

  2. Anil Wadghule
    Anil Wadghule
    • Importance changed from to Low

    Santiago, I followed instructions in above page. I was able to install ruby-debug gem. But if you do 'bundle install' on rails source, you get this issue http://gist.github.com/493584

    July 28th, 2010 @ 07:48 AM

  3. Anil Wadghule
  4. Nick Sieger
    Nick Sieger

    See also this sequence of commands for bootstrapping JRuby to run Rails tests.

    https://gist.github.com/d6fffb7735f4bf6812f6

    The critical piece is to install ruby-debug-base-*-java.gem directly from a downloaded file, then "gem install ruby-debug --ignore-dependencies".

    We also discovered that you need to remove Gemfile.lock before doing any of this.

    I think we can consider this closed as far as Rails is concerned. We still need to have the 'java' version of ruby-debug-base released on rubygems.org as a platform-specific version of the main ruby-debug-base.

    July 28th, 2010 @ 08:07 PM