RVM installing wrong Ruby version

61 Views Asked by At

I'm trying to install Ruby 2.2 on Ubuntu 14.04, but when I type ruby -v it tells me that it's version 1.9.3p484. Reinstalling it as version 2.2 still gives me 1.9.3, so how do I get version 2.2?

1

There are 1 best solutions below

0
On

Add this line into .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Open a new terminal a try again!