env ARCHFLAGS="-arch x86_64" gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
有效但当我尝试运行bundle install时会抛出此错误
Can't find the PostgreSQL client library (libpq)
答案 0 :(得分:1)
通过运行env ARCHFLAGS="-arch x86_64" bundle install