gem install pg doesn't work on OSX Lion

后端 未结 13 1049
天命终不由人
天命终不由人 2020-12-07 15:08

There are variations of this question bouncing around SO, but none of them seem to have an answer that solves my problem.

I am running OSX Lion (10.7.3). The latest

13条回答
  •  北海茫月
    2020-12-07 15:43

    I had a similar issue. Following an answer by bobfet1 for a similar issue I was able to get the gem installed by:

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

提交回复
热议问题