Skip to content

Instantly share code, notes, and snippets.

@henrik
Last active December 30, 2015 02:29
Show Gist options
  • Save henrik/f2c9413f01cb9ef4b5d2 to your computer and use it in GitHub Desktop.
Save henrik/f2c9413f01cb9ef4b5d2 to your computer and use it in GitHub Desktop.
Yosemite upgrade notes

Yosemite upgrade notes

From a (mostly) Ruby on Rails developer.

After doing the below everything seems to work (some of it worked before doing anything), including Ruby, Gems, RVM, Homebrew, VirtualBox/Vagrant VMs, Pow, tmux, git, vim.

  1. Did a full-disk backup that I can restore from
  2. Moved out /usr/local to avoid super slow install, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv /usr/local ~/local
  3. Upgraded to Yosemite
  4. Restored /usr/local, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv ~/local /usr
  5. installed OS X command line tools when something (git stuff in my prompt?) caused OS X to prompt me (or you could do xcode-select --install). Took a while, maybe 1 hour.
  6. Fixed Postgres per http://foobartel.com/2014/10/yosemite-upgrade-postgresql/: mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/; touch /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/.keep; pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
  7. Fixed reattach-to-user-namespace (that I used for clipboard stuff in tmux) per http://www.adamwadeharris.com/problem-with-tmux-when-upgrading-to-yosemite/: brew update; brew upgrade reattach-to-user-namespace
  8. Made sure Homebrew was up to date in general (so the previous item is probably redundant): brew update; brew upgrade
  9. Uninstalled then reinstalled Pow to get a compatible one per basecamp/pow#452 (comment): curl get.pow.cx/uninstall.sh | sh; curl get.pow.cx | sh
  10. Reinstalled Ruby 1.9.3 in RVM so it didn't crash when installing native gems like json, per here (later Rubies seem fine): rvm reinstall ruby-1.9.3 --with-gcc=clang
@RadhikaPothukuchi
Copy link

Thanks for this, it saved us a lot on installing gems.

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