Problem
I'm having a hard time getting Postgres working on my system after upgrading to 9.3 with homebrew. I naively ran $ brew cleanup
so I don't have 9.2 to troubleshoot with. This is the error I get when I run rake db:create
dlopen(/Users/<USERNAME>/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/pg-0.17.0/lib/pg_ext.bundle, 9): Library not loaded: /usr/local/lib/libpq.5.5.dylib
Referenced from: /Users/<USERNAME>/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/pg-0.17.0/lib/pg_ext.bundle
Reason: image not found - /Users/<USERNAME>/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/pg-0.17.0/lib/pg_ext.bundle
$ brew doctor
says everything is fine. I've also gone ahead and re-installed postgres (didn't have anything I needed to keep on my home machine), and still hasn't changed the error message.