This project is archived and is in readonly mode.
ruby-debug can't be installed on JRuby
Reported by Rohit Arondekar | June 11th, 2010 @ 03:41 AM
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?
Comments and changes to this ticket
-
Santiago Pastorino June 13th, 2010 @ 05:18 AM
- 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 ;). -
Anil Wadghule July 28th, 2010 @ 07:48 AM
- 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
-
Anil Wadghule July 28th, 2010 @ 08:05 PM
You can solve this by referring to https://gist.github.com/d6fffb7735f4bf6812f6
-
Nick Sieger July 28th, 2010 @ 08:07 PM
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>