rvm implode
You should have something like this left from RVM. Delete it from the file. ``[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"```
brew doctor
brew update
brew install rbenv
brew install ruby-build
Afterwards you'll still need to run rbenv init
. You'll only ever have to do this once.
(NOTE: Zsh note: Modify your ~/.zshrc file instead of ~/.bash_profile.)
(Opening a new terminal tab will usually do it.)
Now check if rbenv was set up by typing rbenv
into the terminal.
You should see something like this:
rbenv 0.4.0
Usage: rbenv <command> [<args>]
Some useful rbenv commands are:
commands List all available rbenv commands
local Set or show the local application-specific Ruby version
global Set or show the global Ruby version
shell Set or show the shell-specific Ruby version
install Install a Ruby version using ruby-build
uninstall Uninstall a specific Ruby version
rehash Rehash rbenv shims (run this after installing executables)
version Show the current Ruby version and its origin
versions List all Ruby versions available to rbenv
which Display the full path to an executable
whence List all Ruby versions that contain the given executable
See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/sstephenson/rbenv#readme
Yay, works!
rbenv install -l
PRO-TIP: Don't see the ruby version listed you are looking for (aka specified in your gemfile?)? Then you probably are due for a brew update!
brew update
&brew upgrade ruby-build
rbenv install -l
rbenv install 2.3.0
gem install bundler
cd your-project-folder
bundle install
cd your-project-folder
rbenv local 2.3.0
Rbenv info: https://github.com/rbenv/rbenv#installation
Removing RVM tips: https://richonrails.com/articles/uninstalling-rvm
Thank you so much for all of this!