When I do ruby -v I get:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] which ruby returns:
/usr/bin/ruby rvm list returns:
rvm rubies =* ruby-2.1.0 [ x86_64 ] ruby-2.1.2 [ x86_64 ] # => - current # =* - current && default # * - default When I change the current and default Ruby version to 2.1.0. then ruby -v returns:
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] And which ruby shows:
/home/akhil/.rvm/rubies/ruby-2.1.0/bin/ruby But in a new terminal ruby -v again shows:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] I don't want to change the default Ruby version every time.
cat ~/.bash_profile returns
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
cat ~/.bash_profile. Alternatives tocatareless,more,view. Read through the RVM installation page carefully, and follow their debugging steps.