Skip to content

Instantly share code, notes, and snippets.

@henrik
Last active December 30, 2015 02:29
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@johanlunds
Copy link

Thanks! Just updated myself.

How do you use Pow? I stopped using it a pretty long time ago.

@johanlunds
Copy link

I found it tedious to start/stop it all the time, and I needed other processes running for my apps at the same time as well - so Foreman was a better fit for me (us).

@henrik
Copy link
Author

henrik commented Oct 18, 2014

@johanlunds We use Pow to proxy our port-forwarded Rails apps running inside VMs. So instead of http://localhost:8003 I can use http://auctionet.dev, for example. Pow lets you do that by a simple echo 8003 > ~/.pow/auctionet. Within the VMs we don't use Pow, of course.

@raysrashmi
Copy link

Thanks for sharing this 👍

@amiel
Copy link

amiel commented Nov 3, 2014

I also use pow proxy with foreman.

@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