Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 286
Benjamin Avatar asked Mar 11 '23 04:03

Benjamin


2 Answers

Run rbenv rehash

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

like image 84
Daniel Garmoshka Avatar answered Mar 15 '23 05:03

Daniel Garmoshka


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

like image 31
Shannon Avatar answered Mar 15 '23 07:03

Shannon