List the ruby versions
console:~$ rvm list
rvm rubies
ruby-2.0.0-p481 [ i686 ]
# => - current
# =* - current && default
# * - default
Try to use a specific version of ruby
console:~$ rvm use 2.0.0
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
From a new Ubuntu 16.04 Installation
1) Terminal => Edit => Profile Preferences
2) Command Tab => Check Run command as a login shell
3) Close, and reopen terminal
If you don't want that every time you open a terminal, do the suggestion above again, just add
at the end of
~/.bashrc
The error is due to rvm is not running as in login shell. Hence try the below command:
You will able run rvm commands instantly as login shell in terminal.
Thanks!
It seems like your rvm does not load ".bash_profile" properly. I have done to fix it in MAC OS X or Ubuntu 14.04 by opening terminal and write:
Type
bash --login
from your terminal. And then givervm use 2.0.0
Same principle as other answers, just thought it was quicker than re-opening terminals :)