Reputation: 571
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?
Upvotes: 7
Views: 3963
Reputation: 6352
Run rbenv rehash
then to change / update ruby version use rbenv
command which is ruby manager installed on your machine
Upvotes: 13
Reputation: 1668
If you are using brew
you can do brew link --overwrite ruby
and it should fix it. There might be some broken symlinks.
Upvotes: 0
Reputation: 3018
Is this on OS X? You can try removing "$(rbenv init -)"
from your ~/.bash_profile
Upvotes: 2