Reputation: 137
I did
rbenv install 2.2.3
Rbenv Rehash
rbenv Global 2.2.3
however when I check the ruby -v it says
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
And if I try rbenv install again, it says it already exists on
Users/user/.rbenv/versions/2.2.3
Upvotes: 1
Views: 365
Reputation: 137
Resolved it by using rvm to install ruby and doing
rvm default ruby
Upvotes: 0
Reputation: 1161
For now, adding the following to your shell initialization file (~/.bash_profile
for bash users) will fix your problem.
eval "$(rbenv init -)"
Read about what this does here. I recommend reading the official documentation. Bit long, but informative and interesting.
Upvotes: 1