brew upgrade
curl -sSL https://get.rvm.io | bash -s stable --rails
source ~/.rvm/scripts/rvm
If you're using fish
follow this guide: https://rvm.io/integration/fish
If you're using zsh
follow this guide: https://rvm.io/integration/zsh
type rvm | head -n 1
rvm user gemsets
- Depending on your Gemfile, you may need to install a specific version
Installs ruby version 2.1.5:
rvm install 2.1.5
Lists installed versions:
rvm list
Use a specific version:
rvm use 2.1.5
gem install rails
If you run into issues not being able to locate gems, set GEM_HOME="$HOME/.gems"
rails -v
gem install bundler