7

I tried to update my ruby and rails version. But I ended up with this error:

~ ruby -v
/Users/Benjamin/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/1.1.0/libexec/rbenv:
No such file or directory

Is there anything I can do to fix this?

spencer.sm
  • 19,173
  • 10
  • 77
  • 88
Benjamin
  • 521
  • 1
  • 8
  • 19

3 Answers3

12

Run rbenv rehash

then to change / update ruby version use rbenv command which is ruby manager installed on your machine

Daniel Garmoshka
  • 5,849
  • 39
  • 40
2

Is this on OS X? You can try removing "$(rbenv init -)" from your ~/.bash_profile

Shannon
  • 2,988
  • 10
  • 21
0

If you are using brew you can do brew link --overwrite ruby and it should fix it. There might be some broken symlinks.

georger
  • 1,568
  • 21
  • 24