rails - postgres error: Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later,

后端 未结 5 1427
遇见更好的自我
遇见更好的自我 2020-12-16 18:38

I am stuck with the setup of Ruby (1.9.3), Rails and Postgres (9.0.8) on my Mac (10.6.8). Everytime when I run rails console I get the following error:

5条回答
  •  清酒与你
    2020-12-16 19:18

    Install new PostgreSQL version (i've used homebrew)

    brew install postgres
    

    Then reinstall the gem pg:

    gem uninstall pg
    gem install pg
    

    Hope it helps.

提交回复
热议问题