Installing Ruby on Mac

rbenv:

  1. Open the terminal
  2. Install Homebrew
  3. Copy, paste, and run the following:
    • brew install rbenv
    • brew install ruby-build
  4. 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
  5. Close the terminal, and re-open
  6. 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.

results matching ""

    No results matching ""