Cannot install pg gem in Mavericks with Postgres.app

后端 未结 8 1683
灰色年华
灰色年华 2020-12-02 04:16

I am trying to install the pg gem for use with Postgres.app on my local machine. I am running Mavericks.

Postgres.app is installed and running fine, but I cannot get

8条回答
  •  孤街浪徒
    2020-12-02 04:47

    For future reference, since a lot of us are posting new paths for the new version numbers:

    Currently I'm seeing a symlink called latest in /Applications/Postgres.app/Contents/Versions/.

    You should be able to just do:

    $ gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
    

    And forget about the version number. This might not apply to every (older) version, but I myself was looking for a snippet I could save and reuse.

提交回复
热议问题