matthewninja
matthewninja

Reputation: 370

Unable to find a valid gem for ruby-debug-base

I'm trying to install the ruby-debug gem, requiring ruby-debug-base as a dependency.

gem install ruby-debug errors out with:

ERROR:  Could not find a valid gem 'ruby-debug-base' (~> 0.10.6.0) in any repository
ERROR:  Possible alternatives: ruby-debug-base

Ruby version: 2.3.1, which ruby prints:

/Users/my-name/.rvm/rubies/ruby-2.3.1/bin/ruby

have tried adding

source :rubyforge     
source 'http://gems.rubyforge.org' 

to my Gemfile, as seen in a similar question, here.

When I try installing an older version of the gem using gem install ruby-debug -v 0.10.5.rc9, I get the error:

Ruby version 2.3.1 is too new

I've tried installing just ruby-debug-base, and am met with the error:

    current directory: /Users/my-name/.rvm/gems/ruby-2.3.1/gems/linecache-1.3.1/ext/linecache
/Users/my-name/.rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20170824-39487-dus4av.rb extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***

Upvotes: 2

Views: 2048

Answers (1)

Roshan
Roshan

Reputation: 915

Put the gem 'debugger' in Gemfile or install it just for development.

group :development do
  gem 'debugger'
end

Only 1.9.2 and 1.9.3 are supported. For 2.X rubies, consider using byebug.

Even the maintainer of the debugger gem makes this recommendation. Look here.

Upvotes: 2

Related Questions