Failed to Install Gems ... ruby-debug-base19x-0.11.30.pre10.gem ...
Hi guys,
I am surprized to see this issue in RM4. I had the same issue with 3.x. And of course I forgot what i did to solve it. When I start the debugger it asks me to upgrade ruby-debug-base19. and when I do I get the error pasted at the bottom of the post.
I am on OSX, and run RVM
Whats the best way to update this gem. Do you guys recommend not using RVM?
Thanks!
Jonathan
-------
3:21:16 PM Error running Development: pipeline: Failed to Install Gems. Following gems were not installed:/Applications/RubyMine.app/rb/gems/ruby-debug-base19x-0.11.30.pre10.gem: Error installing ruby-debug-base19x-0.11.30.pre10.gem: ERROR: Failed to build gem native extension. /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.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=/Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/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 /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/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 /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:446:in `try_compile' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:885:in `block in have_struct_member' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:276:in `postpone' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:884:in `have_struct_member' from extconf.rb:6:in `block in ' from extconf.rb:31:in `call' from extconf.rb:31:in `block in ' from /Users/jtushman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:473:in `with_cppflags' from extconf.rb:30:in `' Gem files will remain installed in /Users/jtushman/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug-base19x-0.11.30.pre10 for inspection. Results logged to /Users/jtushman/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug-base19x-0.11.30.pre10/ext/ruby_debug/gem_make.out (show balloon)
Please sign in to leave a comment.
If I run the following from the command line:
gem install /Applications/RubyMine.app/rb/gems/ruby-debug-base19x-0.11.30.pre10.gem -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}"
it seems to fix things.
Still nice not have to figgure this out -- it should just work
-- jt
With RubyMine 8 2016.1 I had to modify the above "gem install" to the following line; however my install was NOT successful:
gem install /Applications/RubyMine.app/Contents/rb/gems/ruby-debug-base19x-0.11.31.gem -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}"
Fetching: debugger-ruby_core_source-1.3.8.gem (100%)
Successfully installed debugger-ruby_core_source-1.3.8
Building native extensions with: '--with-ruby-include='
This could take a while...
ERROR: Error installing /Applications/RubyMine.app/Contents/rb/gems/ruby-debug-base19x-0.11.31.gem:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-ruby-include=
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_iseq_new_main() in vm_core.h... no
checking for rb_iseq_compile_on_base() in vm_core.h... no
checking for rb_iseq_t.location in vm_core.h... no
checking for rb_iseq_t.filename in vm_core.h... no
checking for rb_iseq_t.line_info_size in vm_core.h... no
checking for rb_iseq_t.insn_info_size in vm_core.h... no
checking for rb_control_frame_t.ep in vm_core.h... no
checking for rb_control_frame_t.dfp in vm_core.h... no
checking for rb_control_frame_t.bp in vm_core.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_iseq_new_main() in vm_core.h... no
checking for rb_iseq_compile_on_base() in vm_core.h... no
checking for rb_iseq_t.location in vm_core.h... no
checking for rb_iseq_t.filename in vm_core.h... no
checking for rb_iseq_t.line_info_size in vm_core.h... no
checking for rb_iseq_t.insn_info_size in vm_core.h... no
checking for rb_control_frame_t.ep in vm_core.h... no
checking for rb_control_frame_t.dfp in vm_core.h... no
checking for rb_control_frame_t.bp in vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.0.0-p648 provided with debugger-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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ruby-debug-base19x-0.11.31 for inspection.
Results logged to /Library/Ruby/Gems/2