I have a Ruby on Rails app which uses the PostgreSQL database. Attempting to start the server this morning I get the following error from the server log
rails s
/Users/davidlee/.rvm/gems/ruby-1.9.3-p286/gems/pg-0.15.1/lib/pg.rb:4:in `require': dlopen(/Users/davidlee/.rvm/gems/ruby-1.9.3-p286/gems/pg-0.15.1/lib/pg_ext.bundle, 9): Library not loaded: /usr/local/lib/libpq.5.5.dylib (LoadError)
Referenced from: /Users/davidlee/.rvm/gems/ruby-1.9.3-p286/gems/pg-0.15.1/lib/pg_ext.bundle
Reason: image not found - /Users/davidlee/.rvm/gems/ruby-1.9.3-p286/gems/pg-0.15.1/lib/pg_ext.bundle
Further examination showed that the Postgresql database had not started.
Checking on the files referenced, I could find but not open - "Users/davidlee/.rvm/gems/ruby-1.9.3-p286/gems/pg-0.15.1/lib/pg_ext.bundle"
Initially I was totally lost as to why this error had occured. Further reflection reminded me that I had run "brew upgrade" yesterday and perhaps this has caused the error?
I am fairly new to Mac. I am running Mac OS X 10.6.8, so I'm little hesitant to just dive in and add files, uninstall/re-install PostgreSQL - especially before I know what is causing the problem. Does anyone have any ideas/suggestions?