Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

debugger can't be installed on ruby 2.X #125

Closed
eddiefisher opened this issue Apr 21, 2014 · 35 comments
Closed

debugger can't be installed on ruby 2.X #125

eddiefisher opened this issue Apr 21, 2014 · 35 comments

Comments

@eddiefisher
Copy link

ruby -v
ruby 2.1.2p80 (2014-03-01 revision 45231) [x86_64-darwin13.0]
gem install debugger -v '1.6.6'
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-head/bin/ruby extconf.rb
*** 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-head/bin/ruby
/Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1573:in `stat': No such file or directory @ rb_file_s_stat - ./212/ruby_debug.h (Errno::ENOENT)
    from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1573:in `block in fu_each_src_dest'
    from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1587:in `fu_each_src_dest0'
    from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1571:in `fu_each_src_dest'
    from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:399:in `cp'
    from extconf.rb:83:in `block in <main>'
    from extconf.rb:82:in `each'
    from extconf.rb:82:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/eddiefisher/.rvm/gems/ruby-2.1-head/gems/debugger-1.6.6 for inspection.
Results logged to /Users/eddiefisher/.rvm/gems/ruby-2.1-head/extensions/x86_64-darwin-13/2.1.0/debugger-1.6.6/gem_make.out
@cldwalker
Copy link
Owner

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

@SpringMT
Copy link

SpringMT commented May 9, 2014

Is this issue ongoing?
I'm just in trouble with the issue.

@colszowka
Copy link

Yes, I am having this issue with 1.6.6 and against 2.1.2 as well.

@tgautier
Copy link

tgautier commented May 9, 2014

Same here. Issue with 1.6.6 with ruby 2.1.2 on OSX 10.9.2

@caarlos0
Copy link

same here!

@sjfxb
Copy link

sjfxb commented May 12, 2014

👍 and there is a PR for that issue.

@PikachuEXE
Copy link

Same here....

@lucascaton
Copy link

+1

@nathany
Copy link

nathany commented May 13, 2014

Support for Ruby 2.1.2p95 would be groovy.

@granolocks
Copy link

👍

1 similar comment
@mnsami
Copy link

mnsami commented May 13, 2014

+1

@organillero
Copy link

Same here!

@bmfreitas
Copy link

+1

2 similar comments
@lmcdougall
Copy link

+1

@HokieTT
Copy link

HokieTT commented May 14, 2014

+1

@colszowka
Copy link

Hey folks, please refrain from posting spammy +1s and pinging everyone subscribed to this thread. I think the point that this is broken on Ruby 2.1.2 has been made and proved, and either someone with the time and knowledge will submit a fix PR or you tackle this and do the same. I don't think putting +1 comments on this thread will speed things up. Thanks!

@tgautier
Copy link

There's already a PR #126

@lucascaton
Copy link

@cldwalker @astashov @mark-moseley @nobu,
Hey guys, any news from this one?
Thanks.

@jpstokes
Copy link

I've having the same issue.

@gmmeyer
Copy link

gmmeyer commented May 16, 2014

I am having this problem on linux as well, it's not confined to mac.

@cldwalker cldwalker changed the title debugger can't be installed on ruby ruby 2.1.2p80 (2014-03-01 revision 45231) [x86_64-darwin13.0] debugger can't be installed on ruby 2.X May 16, 2014
@cldwalker
Copy link
Owner

For ruby 2.X debugging, I now recommend byebug or debugger2. I've updated the README to indicate this. Reasons for this:

In a week, I will be closing all ruby2 issues including this one. I will hold off on closing them if someone takes up working on 2.X support. I'm happy to provide github and gem push access as needed.
Is @astashov, @nobu, @sunaku, @windwiny or anyone else interested in adding 2.X support for debugger?

This requires doing the following with ko1's pull request, #69:

  • Resolve merge conflicts. A fair amount has landed on master since the pull request
  • Disable tests and features that have not been ported to 2.x e.g. post-mortem and threading. Disabling should only be done for 2.x rubies.
  • Ensure all tests pass on 2.X rubies
  • No longer depend on ruby internals (see officially support ruby 2.X #47 for some discussion). This means there should be no dependence on https://github.com/cldwalker/debugger-ruby_core_source. This should be resolved by the pull request but is important to state nontheless.

@cldwalker
Copy link
Owner

I am also looking for 1.9.X maintainers if anyone is interested

@jasonzhao6
Copy link

What are the pros and cons of byebug vs debugger2?

@nathany
Copy link

nathany commented May 16, 2014

Our reason for using debugger (with Ruby 2.1) is that pry-debugger currently depends on it. /cc @nixme

hennevogel added a commit to hennevogel/osem that referenced this issue Jul 23, 2014
everaldo added a commit to everaldo/tecno_freela that referenced this issue Aug 29, 2014
It was necessary to uninstall pry-debugger in favor of pry-byebug,

because the debugger gem doesn't offer full support to Rails 2

References:

http://stackoverflow.com/questions/20826568/debugger-gem-not-supported-in-ruby-2-1-0-2-1-1-2-1-2

cldwalker/debugger#125 (comment)
@patrickespake
Copy link

+1 for Ruby 2.1.3

@ghost
Copy link

ghost commented Oct 1, 2014

I believe we are supposed to use byebug for ruby 2+.

lastobelus added a commit to lastobelus/command_line_reporter that referenced this issue Oct 21, 2014
swap byebug for debugger in gemspec, see cldwalker/debugger#125
lastobelus added a commit to lastobelus/command_line_reporter that referenced this issue Oct 22, 2014
swap byebug for debugger in gemspec, see cldwalker/debugger#125
estum referenced this issue in estum/pry-plus Oct 27, 2014
techieshark added a commit to codeforamerica/MuniciPal that referenced this issue Oct 31, 2014
- 2.1.2 is recommended on Heroku:
  https://devcenter.heroku.com/changelog-items/468

- `debugger` gem does not build on 2.1.2; switching to `byebug` 
   `bye bug` is the recommended debugger for current Ruby + Rails (see cldwalker/debugger#125 (comment) and rails/rails#14533)

- The following commands may help in switching your local version (assuming you use rbenv):

	rbenv install 2.1.2
	rbenv local 2.1.2
	gem install bundler
	bundle
techieshark added a commit to codeforamerica/MuniciPal that referenced this issue Oct 31, 2014
- 2.1.2 is recommended on Heroku:
  https://devcenter.heroku.com/changelog-items/468

- `debugger` gem does not build on 2.1.2; switching to `byebug`
   `bye bug` is the recommended debugger for current Ruby + Rails (see cldwalker/debugger#125 (comment) and rails/rails#14533)

- The following commands may help in switching your local version (assuming you use rbenv):

	rbenv install 2.1.2
	rbenv local 2.1.2
	gem install bundler
	bundle
simonalpha pushed a commit to sbelluzzo/protk that referenced this issue Dec 17, 2014
A fresh dev install in ruby 2.0 or 2.1 fails when trying to install
debugger dependencies. Debugger is not recommended for ruby 2.x
(cldwalker/debugger#125)
lastobelus added a commit to lastobelus/command_line_reporter that referenced this issue Oct 29, 2015
swap byebug for debugger in gemspec, see cldwalker/debugger#125
cruwe added a commit to cruwe/puppet-datacat that referenced this issue Nov 11, 2016
pry-debugger depends on debugger, which cannot be installed on
ruby>=2.0. An extensive, lengthy and sometimes unerving discussion can
be found on cldwalker/debugger#125

On May 16, 2014, cldwalker suggested moving to byebug for
rubies>=2. This is reflected in the change to Gemfile.

	modified:   Gemfile
cruwe added a commit to cruwe/puppet-datacat that referenced this issue Nov 13, 2016
pry-debugger depends on debugger, which cannot be installed on
ruby>=2.0. An extensive, lengthy and sometimes unerving discussion can
be found on cldwalker/debugger#125

On May 16, 2014, cldwalker suggested moving to byebug for
rubies>=2. This is reflected in the change to Gemfile.

As it turns out, travisci has problems working with the mri platform
directive, so bacd782 has been
reworked to resort to simple if-else logic.
@albe-rosado
Copy link

it is fixed or still ongoing? every time i try to install pry-byebug or byebug or debugger or debugger2 i get this:

ERROR: Failed to build gem native extension.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.