Unable to install debug gem with Ruby 2.2.2

Hello,

I am trying to run the debugger, but it fails when trying to install the associated gems.  When I switch to Ruby 2.2.2 and run the debugger, I get the message "The ruby gem-debug-base required by the debugger is not currently installed. Would you like to install it?" I click "Yes". Then I receive the following error:

Error running Development: stock_trend_finder
            Failed to Install Gems. Following gems were not installed:
            /Applications/RubyMine.app/Contents/rb/gems/ruby-debug-base-0.10.5.rc10.gem:  Error installing ruby-debug-base-0.10.5.rc10.gem:
            ERROR: Failed to build gem native extension.      /Users/wkotzan/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150423-87785-4dpr91.rb extconf.rb Ruby version 2.2.2 is too new *** 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/wkotzan/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)  extconf failed, exit code 1  Gem files will remain installed in /Users/wkotzan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/g... (show balloon)


When using Ruby 2.0.0-p247 it works just fine.
3 comments
Comment actions Permalink

Hi,

it looks like RubyMine thinks that the sdk is ruby 1.8,  I'd check the language level of the sdk and try to remove/re-add it.
BTW what version of RubyMine are you using?

Regards, Oleg.

0
Comment actions Permalink

I am using RubyMine 7.1. You are right the language level for some reason was 1.8. Removing Ruby 2.2.2 from the list and adding it back seems to have fixed the problem. The language level box now says lanugage level 2.2. Thanks!

0
Comment actions Permalink

Most likely the sdk has been added by 7.0.x which (as far as I remember) has bug with language level detection for 2.2.x

Regards, Oleg.

0

Please sign in to leave a comment.