cldwalker / debugger

port of ruby-debug that works on 1.9.2 and 1.9.3
BSD 2-Clause "Simplified" License
845 stars 80 forks source link

ruby 2.0 ,ERROR: Failed to build gem native extension., this error didn't completely solve #122

Closed perfectfoolish closed 10 years ago

perfectfoolish commented 10 years ago

I also this error now

my environment

lifl-macbook-air:union cow$ rvm list

rvm rubies

   ruby-1.9.3-p545 [ x86_64 ]
=* ruby-2.0.0-p451 [ x86_64 ]
   ruby-2.1.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default
lifl-macbook-air:union cow$ which ruby
/Users/cow/.rvm/rubies/ruby-2.0.0-p451/bin/ruby
lifl-macbook-air:union cow$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.1.0]

Error output

Installing debugger-ruby_core_source (1.2.3)

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/cow/.rvm/rubies/ruby-2.0.0-p451/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-p451 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
    --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/cow/.rvm/rubies/ruby-2.0.0-p451/bin/ruby
    --with-ruby-dir
    --without-ruby-dir
    --with-ruby-include=${ruby-dir}/include
    --with-ruby-lib
    --without-ruby-lib=${ruby-dir}/

extconf failed, exit code 1

Gem files will remain installed in /Users/cow/.rvm/gems/ruby-2.0.0-p451@union/gems/debugger-1.6.0 for inspection.
Results logged to /Users/cow/.rvm/gems/ruby-2.0.0-p451@union/extensions/x86_64-darwin-13/2.0.0/debugger-1.6.0/gem_make.out
An error occurred while installing debugger (1.6.0), and Bundler cannot continue.

what should i do ? help me

cldwalker commented 10 years ago

Thanks for reporting your issue! This is one of my 12 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.

perfectfoolish commented 10 years ago

I have slove this by using

gem install debugger

without the version number of the gem

jonathan-mui commented 10 years ago

I got this issue when upgrading my local version of ruby to (2.0.0p451). Based on @perfectfoolish's suggestion, I used this to fix my bundle:

$ bundle update debugger
cldwalker commented 10 years ago

Closing since I'm scoping debugger to just 1.9.2 and 1.9.3. For more see https://github.com/cldwalker/debugger/issues/125#issuecomment-43353446