简体   繁体   中英

postgres gem error after yosemite upgrade

I installed the Yosemite beta the other night and now I am having issues with my postgres gem:

$ rails s
/Users/julio/GIT_REPOS/maztaplan2/vendor/bundle/gems/pg-0.17.1/lib/pg.rb:4:in `require': dlopen(/Users/julio/GIT_REPOS/maztaplan2/vendor/bundle/extensions/x86_64-darwin-13/2.0.0/pg-0.17.1/pg_ext.bundle, 9): Library not loaded: /usr/local/lib/libpq.5.6.dylib (LoadError)

I tried updating my gems with gem update system but it said there was nothing to update. I also did a bundle update with no change.

I found this.

cd /usr/local/var/postgres

mkdir pg_tblspc pg_twophase pg_stat_tmp

It worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM