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

后端 未结 5 1438
遇见更好的自我
遇见更好的自我 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

    Symlinking the files as above didn't work for me. pg would always look at libssl-0.9.8.dylib.

    This question contains the right answer it seems: gem install pg --with-pg-config works, bundle fails

    It boils down to

    bundle config build.pg --with-pg-config=/Library/PostgreSQL/9.1/bin/pg_config

    (or whichever pg you are targeting)

    followed by gem uninstall pg and then bundle install

提交回复
热议问题