FAILURE when upgrading Debugger gems in RubyMine 2016.1 (ruby 2.2.2)

 After upgrading to RM 2016.1 from 2016.0, attempting to upgrade the ruby-debug-idea and debase gems fails:

com.intellij.execution.ExecutionException: Failed to Install Gems. Following gems were not installed:

/Applications/RubyMine.app/Contents/rb/gems/ruby-debug-ide-0.6.1.beta2.gem: Error installing ruby-debug-ide-0.6.1.beta2.gem:
ERROR: Failed to build gem native extension. /Users/dbrown/.rvm/rubies/ruby-2.2.2/bin/ruby mkrf_conf.rb Installing base gem Building native extensions. This could take a while... Building native extensions. This could take a while... ERROR: Failed to build gem native extension. /Users/dbrown/.rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20160408-56054-rktu59.rb 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 --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/dbrown/.rvm/rubies/ruby-2.2.2/bin/$(RUBY_BASE_NAME) --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib /Users/dbrown/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.

 

I have the latest Xcode and commandline tools installed.  (XCode 7.3).   OS is El Capitan 10.11.4.

 

4 comments

I am having either the same problem or a similar one.  I updated the debug gem as requested by RubyMine, saw similar messages to those listed above by Dave, and now debugging is completely broken.  It stops constantly on phantom breakpoints in the system code.  I don't believe the lines that behave like breakpoints are even really the active lines.  The first line it 'breakpoints' on is in file 'rails'.  It breaks on the require 'rails/commands'.

#!/usr/bin/env ruby
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'

 

0

I, too, am unable to get the debugger to work after upgrading to 2016.1.  Without the debugger, this version is unusable to me. Please help!

I'm getting:

 

Failed to Install Gems. Following gems were not installed: /home/developer/Ruby/RubyMine-2016.1.1/rb/gems/debase-0.2.2.beta7.gem: Error installing debase-0.2.2.beta7.gem: ERROR: Failed to build gem native extension. /home/developer/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160613-2995-nyfhpc.rb extconf.rb checking for vm_core.h... no checking for vm_core.h... no Makefile creation failed ************************************************************************** No source for ruby-2.2.1-p85 provided with debase-ruby_core_source gem. ************************************************************************** *** 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=/home/developer/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME) --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib extconf failed, exit code 1 Gem files will remain installed in /home/developer/.rvm/gems/ruby-2.2.1/gems/debase-0.2.2.beta7 for inspection. Results logged to /home/developer/.rvm/gems/ruby-2.2.1/extensions/x86_64-linux/2.2.0/debase-0.2.2.beta7/gem_make.out /home/developer/Ruby/RubyMine-2016.1.1/rb/gems/ruby-debug-ide-0.6.1.beta2.gem: Error installing ruby-debug-ide-0.6.1.beta2.gem: ERROR: Failed to build gem native extension. /home/developer/.rvm/rubies/ruby-2.2.1/bin/ruby mkrf_conf.rb Installing base gem Building native extensions. This could take a while... Building native extensions. This could take a while... ERROR: Failed to build gem native extension. /home/developer/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160613-3019-11s04g6.rb extconf.rb checking for vm_core.h... no checking for vm_core.h... no Makefile creation failed ************************************************************************** No source for ruby-2.2.1-p85 provided with debase-ruby_core_source gem. ************************************************************************** *** 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=/home/developer/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME) --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib extconf failed, exit code 1 Gem files will remain installed in /home/developer/.rvm/gems/ruby-2.2.1/gems/debase-0.2.2.beta8 for inspection. Results logged to /home/developer/.rvm/gems/ruby-2.2.1/extensions/x86_64-linux/2.2.0/debase-0.2.2.beta8/gem_make.out /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:89:in `run' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/ext_conf_builder.rb:36:in `block in build' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tempfile.rb:319:in `open' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/ext_conf_builder.rb:19:in `build' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:160:in `chdir' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:160:in `block in build_extension' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:159:in `synchronize' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:159:in `build_extension' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:198:in `block in build_extensions' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:195:in `each' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/ext/builder.rb:195:in `build_extensions' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:702:in `build_extensions' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:250:in `install' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:166:in `block in install' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:150:in `each' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:150:in `install' /home/developer/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/dependency_installer.rb:404:in `install' mkrf_conf.rb:35:in `rescue in  ' mkrf_conf.rb:28:in ` ' rake failed, exit code 1 Gem files will remain installed in /home/developer/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.1.beta2 for inspection. Results logged to /home/developer/.rvm/gems/ruby-2.2.1/extensions/x86_64-linux/2.2.0/ruby-debug-ide-0.6.1.beta2/gem_make.out 

0

Hello, Dave,

sorry for the delay. Could you please check how it goes in case you uninstall debase and ruby-debug-ide gems from Terminal and then try to install them manually by running:

gem install debase --pre
gem install ruby-debug-ide
0

Olga's solution worked for me.  That "--pre" seems to be the key, and installing from the terminal, of course.

0

Please sign in to leave a comment.