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