Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active December 12, 2016 14:58
Show Gist options
  • Save poteto/ab76e45150061cb8c007 to your computer and use it in GitHub Desktop.
Save poteto/ab76e45150061cb8c007 to your computer and use it in GitHub Desktop.
Upgrading from Mavericks to Yosemite for Rails Devs

Upgrading from OSX Mavericks to OSX Yosemite (10.10)

Before upgrading to Yosemite, read this first, as your upgrade could potentially take a few hours if you have a large /usr folder. After the upgrade finishes, log in to OS X and install all updates in the App Store. Once the updates are done, do the following:

1. Install the latest Xcode CLT

xcode-select --install

2. Install Xcode 6.1

Sign into Apple Developer and download Xcode 6.1 (not yet on the App Store)

3. Perform some maintenance on brew

mkdir /Library/Caches/Homebrew
brew update && brew upgrade && brew cleanup && brew prune

Note: These are handy aliases for making sure brew is always up to date:

alias update_all='brew update && brew upgrade && && brew prune && gem update --system'
alias cleanup_all='brew cleanup && brew cask cleanup'
alias update_and_clean='update_all && cleanup_all'

4. Reinstall and restart postgres

brew reinstall postgres
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mkdir /usr/local/var/postgres/pg_tblspc
mkdir /usr/local/var/postgres/pg_twophase
mkdir /usr/local/var/postgres/pg_stat_tmp
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
ARCHFLAGS="-arch x86_64" gem install pg

5. Reinstall Pow (Optional)

curl get.pow.cx/uninstall.sh | sh
curl get.pow.cx | sh
sudo pfctl -f /etc/pf.conf
sudo pfctl -e

Add this bash alias and run it if pow stops working:

alias restart_pow='sudo pfctl -d && sudo pfctl -f /etc/pf.conf && sudo pfctl -e'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment