Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362

While trying run bundle for a new project, I'm encountering the following error:

Installing debugger (1.2.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.      C:/Ruby193/bin/ruby.exe extconf.rb 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_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no Makefile creation failed ************************************************************************** No source for ruby-1.9.3-p362 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=C:/Ruby193/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   Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.2.2 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.2.2/ext/ruby_debug/gem_make.out An error occured while installing debugger (1.2.2), and Bundler cannot continue. Make sure that `gem install debugger -v '1.2.2'` succeeds before bundling. 

Running gem install debugger -v '1.2.2' produces the same results.

I've checked the contents of the mkmf.log and gem_make.out file and they make little sense, but if requested I will post them.

Why doesn't this work?

like image 735
erroric Avatar asked Dec 27 '12 19:12

erroric


1 Answers

I ran into same issue. I tried:

bundle update debugger

My Gemfile had this:

gem 'debugger'

And it worked, I did not have to change Gemfile. Output of bundle shows something like this

...

Installing debugger-ruby_core_source (1.1.6)

Installing debugger-linecache (1.1.2) with native extensions

Installing debugger (1.1.4) with native extensions

...

like image 116
user1783021 Avatar answered Sep 21 '22 16:09

user1783021