Cannot install pg gem in Mavericks with Postgres.app

后端 未结 8 1669
灰色年华
灰色年华 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:40

    In my case (running Postgres.app v9.3.4.2) it only seemed to work when prepending the environment architecture flags:

    env ARCHFLAGS="-arch x86_64" gem install pg -- \
    --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config 
    

提交回复
热议问题