Failed to build native extensions
jfeldstein opened this issue · 6 comments
When I bundle install my rails project, I see:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Jordan/.rvm/rubies/ruby-1.9.3-head/bin/ruby 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-p470 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=/Users/Jordan/.rvm/rubies/ruby-1.9.3-head/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
Gem files will remain installed in /Users/Jordan/.rvm/gems/ruby-1.9.3-head@portl/gems/debugger-1.6.2 for inspection.
Results logged to /Users/Jordan/.rvm/gems/ruby-1.9.3-head@portl/gems/debugger-1.6.2/ext/ruby_debug/gem_make.out
An error occurred while installing debugger (1.6.2), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.2'` succeeds before bundling.
I've tried bundle update
and gem install debugger -v '1.6.1'
which both fail the same way.
Any ideas?
Thanks for reporting your issue! This is one of my 10 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.
Just thought I'd include the fact that this will work fine with ruby 1.9.3-p448 but not 1.9.3-p484. It's odd that this is the case, but I was able to get around this by just using the older patch level.
I'm getting this as well with Ruby-2.0.0-p353
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/hansthered/.rvm/rubies/ruby-2.0.0-p353/bin/ruby 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-2.0.0-p353 provided with debugger-ruby_core_source gem.
UPDATE: After running "gem install debugger" I was then able to "bundle install" I think a dependency was missing but it was caught with the later version. Then I was able to install the earlier version which the team was using.
@HansHauge thanks! doing gem install debugger; bundle install
worked fine.
Cheers
@jfeldstein p470 support was never added to debugger-ruby_core_source. If you're on 1.9.3 I'd suggest using p448 or p484. If you need p470 support I'm open to a pull request on debugger-ruby_core_source.
@jfeldstein command : gem install debugger -- --with-ruby-include=PATH_TO_HEADERS