Cannot get debug to work for a Rails 3.0 project with RubyMine 3.0

I am using OS X 10.6.5 and RM 97.122.

When trying to debug a rails 3.0 project it tells me that the "gem ruby-debug-ide required by the debugger is outdated. would you like to update it?"
I choose yes then get the following error.

       Error running DataRailMr3:
Failed to install gems. Following gems        were not installed:
/Applications/RubyMine        3.0.app/rb/gems/ruby-debug-ide-0.4.15.gem: Error installing        ruby-debug-ide-0.4.15.gem:
ERROR: Failed to build gem native        extension. /Users/rsaucedo/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby        mkrf_conf.rb Building native extensions. This could take a while... Gem        files will remain installed in        /Users/rsaucedo/.rvm/gems/ruby-1.9.2-preview3/gems/ruby-debug-ide-0.4.15        for inspection. Results logged to        /Users/rsaucedo/.rvm/gems/ruby-1.9.2-preview3/gems/ruby-debug-ide-0.4.15/ext/gem_make.out
/Applications/RubyMine        3.0.app/rb/gems/ruby-debug-base19-0.11.25.jb2.gem: Error installing        ruby-debug-base19-0.11.25.jb2.gem:
ERROR: Failed to build gem native        extension. /Users/rsaucedo/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby        extconf.rb checking for rb_method_entry_t.body in method.h... no        checking for vm_core.h... no Makefile creation failed        ************************************************************* NOTE: For        Ruby 1.9 installation instructions, please see:        http://wiki.github.com/mark-moseley/ruby-debug        ************************************************************* ***        extconf.rb failed *** Could not create Makefile due to some reason,        probably lack of necessary libraries and/or headers. Check the mkmf.log        file for more details. You may need configuration options. Provided        configuration options: --with-opt-dir --without-opt-dir        --with-opt-include --without-opt-include=${opt-dir}/include        --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog        --without-make-prog --srcdir=. --curdir        --ruby=/Users/rsaucedo/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby        --with-ruby-dir --without-ruby-dir --with-ruby-include        --without-ruby-include=${ruby-dir}/include --with-ruby-lib        --without-ruby-lib=${ruby-dir}/lib Requesting        http://cloud.github.com/downloads/mark-moseley/ruby_core_source/preview_revision.yml        Downloading        http://cloud.github.com/downloads/mark-moseley/ruby_core_source/preview_revision.yml        Gem files will remain installed in        /Users/rsaucedo/.rvm/gems/ruby-1.9.2-preview3/gems/ruby-debug-base19-0.11.25.jb2        for inspection. Results logged to        /Users/rsaucedo/.rvm/gems/ruby-1.9.2-preview3/gems/ruby-debug-base19-0.11.25.jb2/ext/ruby_debug/gem_make.out

Debugging a Rails 2 project works fine.

Any help is appreciated.

Thanks

0
9 comments

Please, consider updating ruby-1.9.2-preview3 to ruby-1.9.2-p0

0
Avatar
Permanently deleted user

Getting a quite similar error on Windows XP SP3 with RubyMine Build RM#-97.122

Failed to install gems. Following gems were not installed: C:/Program Files/JetBrains/RubyMine 3.0/rb/gems/ruby-debug-base19-0.11.25.jb2.gem: Error installing ruby-debug-base19-0.11.25.jb2.gem: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for vm_core.h... *** extconf.rb failed *** Building native extensions. This could take a while... Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby192/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in `block in have_header' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in `have_header' from extconf.rb:15:in `block in  ' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:18:in `call' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:18:in `create_makefile_with_core' from extconf.rb:20:in ` ' Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out linecache19 (0.5.11): Error installing linecache19: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for vm_core.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby192/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in `block in have_header' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for' from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in `have_header' from extconf.rb:15:in `block in  ' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:18:in `call' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:18:in `create_makefile_with_core' from extconf.rb:20:in ` ' Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out Building native extensions. This could take a while... C:/Program Files/JetBrains/RubyMine 3.0/rb/gems/ruby-debug-ide-0.4.15.gem: Error installing ruby-debug-ide-0.4.15.gem: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe mkrf_conf.rb Building native extensions. This could take a while... Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.15 for inspection. Results logged to C:/Ruby192/lib/rub

Tried to uninstall Ruby and RubyMine 3.0 and reinstall both again but with no luck.

0

Örn, this problems are not connected. In order to get ruby-debug-base19 gem installed you shoud install DevKit: http://github.com/downloads/oneclick/rubyinstaller/DevKit-4.5.0-20100819-1536-sfx.exe. Installation and configuration instructions for DevKit are here: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
We hope to get it more automated in future versions

0
Avatar
Permanently deleted user

Dennis,
thanks, that fixed my problem.

Rafael Saucedo , sorry if I hijacked your thread.

0
Avatar
Permanently deleted user

Getting a similar error installing the gems for debugging.  Here is the output I'm getting:

I'm on Windows 7

Error running Development: Rails3: Failed to install gems. Following gems were not installed: C:/Program Files (x86)/JetBrains/RubyMine 3.0/rb/gems/ruby-debug-ide-0.4.15.gem: Error installing ruby-debug-ide-0.4.15.gem: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe mkrf_conf.rb Building native extensions. This could take a while... Temporarily enhancing PATH to include DevKit... rake RUBYARCHDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.15/lib RUBYLIBDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.15/lib C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception) from C:/Ruby192/bin/rake:19:in ` ' Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.15 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.15/ext/gem_make.out Building native extensions. This could take a while...

Thanks for any help!

0
Avatar
Permanently deleted user

@Steve,
Denis already answered. You need to install Devkit in order to compile native gems. You will find more infos there:
http://groups.google.com/group/rubyinstaller/browse_thread/thread/54f3f7f016177db1/3848c151af6dbb9a?lnk=gst&q=ruby+debug#3848c151af6dbb9a

Install Devkit, then check if it works with:

gem install rdiscount --platform=ruby
0
Avatar
Permanently deleted user

Sorry, I was not clear.

I am getting the error I posted above after installing Devkit.

I also ran the test per the docs as you suggested:
gem install rdiscount --platform=ruby

The rdiscount gem installed successfully.  Help?

0
Avatar
Permanently deleted user

This worked! Thanks

I am now able to debug BUT each time I start debugging I get the following message.

The gem ruby-debug-ide required by the debugger is outdated. Would you like to update it?

0
Avatar
Permanently deleted user

Removed all installations on my Windows box (was using Pik). Installed Ruby 1.9.2 and Devkit, and now the debugger works.

0

Please sign in to leave a comment.