6

When I type irb into terminal all I get is this:

Traceback (most recent call last):
    2: from /usr/local/opt/ruby/bin/irb:23:in `<main>'
    1: from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException)

I think it might be something to do with the gem library or version but can't figure it out. I am new to this and don't want to further mess things up, any help would be greatly appreciated! Thanks in advance!

wgj
  • 18,876
  • 1
  • 17
  • 26
  • Install RVM with `\curl -sSL https://get.rvm.io | bash -s stable`; restart your shell; install Ruby with `rvm install 2.6.0`. Then try again. – anothermh Jan 18 '19 at 23:39
  • Ok I'll try that, thank you – notyourfavginger Jan 19 '19 at 01:38
  • 1
    This is what worked for me: 1) `brew install chruby` 2) `brew install ruby-install` 2) `ruby-install ruby 2.6.0` 3) In a new terminal window: `chruby 2.6.0` – Adail Retamal Jan 20 '19 at 10:10
  • 1
    Possible duplicate of https://stackoverflow.com/questions/54393939/homebrew-install-ruby-keg-only-cant-find-gem. – eddroid Feb 05 '19 at 17:09
  • 1
    Possible duplicate of [Homebrew install Ruby keg-only can't find gem](https://stackoverflow.com/questions/54393939/homebrew-install-ruby-keg-only-cant-find-gem) – rogerdpack Aug 08 '19 at 22:47

0 Answers0