cldwalker / debugger

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

Ruby version 2.1.0 is not supported. #110

Closed eddiefisher closed 10 years ago

eddiefisher commented 10 years ago

✗ gem install debugger Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension.

/Users/eddiefisher/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb

Ruby version 2.1.0 is not supported. * 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/eddiefisher/.rvm/rubies/ruby-2.1.0/bin/ruby

extconf failed, exit code 1

Gem files will remain installed in /Users/eddiefisher/.rvm/gems/ruby-2.1.0/gems/debugger-1.6.4 for inspection. Results logged to /Users/eddiefisher/.rvm/gems/ruby-2.1.0/extensions/x86_64-darwin-13/2.1.0/debugger-1.6.4/gem_make.out

cldwalker commented 10 years ago

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

antifuchs commented 10 years ago

I believe this is partly due to https://github.com/cldwalker/debugger-ruby_core_source/pull/27, but debugger also needs a 210 source directory. In my experiments, it installs when you copy the ext/ruby_debug/200 to 210, however tests on OS X fail with "dyld: lazy symbol binding failed: Symbol not found: _rb_vm_get_sourceline".

I can't quite get tests to run outside 2.1.0 (imagine that!), but I suspect that this may have been broken earlier.

merqlove commented 10 years ago

Exactly. Same here, but on RBENV ruby-2.1.0.

debugger-ruby_core_source installs fine. There (extconf.rb) is if/else construction, which compare ruby versions and if version not 2.0.0, then it say: Ruby version X.X.X is not supported.

cldwalker commented 10 years ago

Just released a version which should make 2.1.0 installable.

@antifuchs Tests don't pass on 2.X. True ruby 2 support won't happen until the ruby community cares enough to take it on - see #69 and #47

cmalpeli commented 10 years ago

I'm still getting this error when trying to install 1.6.5 on ruby 2.1:

gem install debugger -v '1.6.5'

Fetching: debugger-ruby_core_source-1.3.1.gem (100%) Successfully installed debugger-ruby_core_source-1.3.1 Fetching: debugger-1.6.5.gem (100%) Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension.

/Users/cmalpeli/.rvm/rubies/ruby-2.1.0/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 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


NOTE: If your headers were not found, try passing --with-ruby-include=PATH_TO_HEADERS


* 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/cmalpeli/.rvm/rubies/ruby-2.1.0/bin/ruby --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 /Users/cmalpeli/.rvm/gems/ruby-2.1.0@Rails4.0_app/gems/debugger-1.6.5 for inspection. Results logged to /Users/cmalpeli/.rvm/gems/ruby-2.1.0@Rails4.0_app/extensions/x86_64-darwin-12/2.1.0-static/debugger-1.6.5/gem_make.out

eddiefisher commented 10 years ago

cmalpeli: you need just delete gem 'debugger'

cmalpeli commented 10 years ago

I ran 'gem uninstall debugger' but still get the same error as above when I run gem install debugger -v '1.6.5'

eddiefisher commented 10 years ago

it's joke delete gem 'debugger' and forget about this gem

shaileshgupta commented 10 years ago

How to use pry-debugger with ruby 2.x on Mac OS? My debugger installation is crapping out as outlined by many before giving build error.

Exact error given:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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 checking for rb_method_entry_t.called_id in method.h... yes checking for vm_core.h... yes checking for iseq.h... no Makefile creation failed


NOTE: If your headers were not found, try passing --with-ruby-include=PATH_TO_HEADERS


* 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 --without-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/debugger-1.6.6 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/debugger-1.6.6/ext/ruby_debug/gem_make.out An error occurred while installing debugger (1.6.6), and Bundler cannot continue. Make sure that gem install debugger -v '1.6.6' succeeds before bundling.

steveyken commented 10 years ago

1.6.6 is working for me on Ubuntu 13.10. Thanks for fixing @cldwalker and happy Friday! :)

jeremywadsack commented 10 years ago

Confirm that 1.6.6 fixes this issue on Max OS X 10.9.2 as well.