Library not loaded: /usr/local/lib/libpq.5.4.dylib

前端 未结 6 1754
轻奢々
轻奢々 2021-01-01 08:54

I am working on a rails app.
Installed Postgresql using postgresql-9.1.2-1-osx.dmg
Installed pg gem.
Then when I executed rake db:create getting the

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 09:19

    if you have upgraded PostgreSQL with homebrew (brew update && brew upgrade), then simply uninstall the pg gem:

    gem uninstall pg
    bundle install
    

    and the path will be corrected for you. No need to uninstall the whole PostgreSQL cluster.

提交回复
热议问题