Skip to content

Instantly share code, notes, and snippets.

@rebeccacaroline
Last active April 6, 2016 18:18
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 rebeccacaroline/d51a0dbfac4a220694affa043066a8d2 to your computer and use it in GitHub Desktop.
Save rebeccacaroline/d51a0dbfac4a220694affa043066a8d2 to your computer and use it in GitHub Desktop.

Computer Set-Up Instructions - Mac

Install Homebrew

Also called "Brew." Brew is like the app store for the command line (i.e. your terminal). If you ever need any command-line tool, try installing with Brew before other methods. (ex. brew install name-of-thing)

Install brew by copying and pasting this beautiful code into your terminal:

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

It will prompt you for your password - so be ready to type it in.

Install Rbenv

Type: brew install rbenv

NOTE: If you already have RVM installed, you will not need to install Rbenv. Do not try to install both, they don't work well together and will mess up your machine. Rbenv is preferred in many of our locations, so if you have RVM and want to install Rbenv, you'll have to uninstall RVM first.

Install Ruby Build

Type: brew install ruby-build

NOTE: If you are using RVM instead of rbenv, you will not need to install ruby-build.

Install Ruby 2.0.0

Type: rbenv install 2.0.0-p481

Now, you need to set the default Ruby in your computer to the Ruby we just installed.

Type: rbenv global 2.0.0-p481

Install Postgres

Type the following commands one at a time:

brew install postgres

mkdir -p $HOME/Library/LaunchAgents

ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment