how to set default ruby with rvm
ruby-on-rails
Solution
Typing `rvm list` will give you a list of the installed rubies you have, like this:
ree-1.8.7-2010.02 [ i686 ]
ruby-1.8.7-p249 [ i686 ]
ruby-1.9.2-p180 [ x86_64 ]
ruby-1.9.2-p180-patched [ x86_64 ]
ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.2-p290-webkit [ x86_64 ]
=* ruby-1.9.3-p194 [ x86_64 ]
If the one you want is `ruby-1.9.3-p194`, then type:
rvm --default use ruby-1.9.3-p194
First, be careful to follow the installation instructions closely and make sure it's working.
You should also see this line in your bashrc as well:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Then try opening a new shell or try typing:
source ~/.rvm/scripts/rvm
But in general if you're having issues, I'd recommend just re-installing rvm -- it doesn't take long and it's easy:
curl -L get.rvm.io | bash -s stable
Problem
It is defaulting to 1.8.7 which comes with Mac OS x. I am trying to use RVM and use 1.9.3 I tried rvm use default and is says -bash: rvm: command not found my bashrc file has ``` PATH=$PATH:$HOME/.rvm/bin ```