Installing Ruby on Mac
rbenv:
- Open the terminal
- Install Homebrew
- Copy, paste, and run the following:
brew install rbenv
brew install ruby-build
- Copy, paste, and run the following:
echo 'export PATH=$PATH:$HOME/.rbenv/bin' >> ~/.bash_profile
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
- Close the terminal, and re-open
- Copy, paste, and run:
rbenv install 2.1.2
rbenv global 2.1.2
Try running a ruby program to test!
Atom:
In addition to ruby, you'll want a native text editor. We recommend using atom.