Skip to content

Instantly share code, notes, and snippets.

@mbklein
Last active April 9, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbklein/3d70f4b8b621940a1c4eb973685301ce to your computer and use it in GitHub Desktop.
Save mbklein/3d70f4b8b621940a1c4eb973685301ce to your computer and use it in GitHub Desktop.
Going from Zero to Rails on OS X
  1. Open a Terminal window

  2. Install Xcode command line tools:

    xcode-select --install
    

    (Follow pop-up prompts to install command-line tools)

  3. Install the homebrew package manager:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    You may be prompted for your admin password. It's fine. The installer needs to set the right permissions on /usr/local.

  4. Install the asdf version manager:

    brew install asdf
    
  5. Configure your shell to load asdf:

    echo 'export ASDF_DIR=$(brew --prefix asdf)' >> ~/.bash_profile
    echo '. $ASDF_DIR/asdf.sh' >> ~/.bash_profile
    
  6. Close your Terminal window and open a new one.

  7. Install ruby:

    asdf plugin-add ruby
    asdf install ruby 2.5.5
    asdf global ruby 2.5.5
    asdf reshim ruby
    
  8. Install rails:

    gem install --no-doc rails -v 5.2.3
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment