Benjamin
Benjamin

Reputation: 571

Error with ruby update

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

Answers (3)

Daniel Garmoshka
Daniel Garmoshka

Reputation: 6352

Run rbenv rehash

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

Upvotes: 13

georger
georger

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

Shannon
Shannon

Reputation: 3018

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

Upvotes: 2

Related Questions