Tyler
Tyler

Reputation: 2386

gem install pg works but bundle install doesn't

env ARCHFLAGS="-arch x86_64" gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config works but when I try to run bundle install it throws this error

Can't find the PostgreSQL client library (libpq)

Upvotes: 1

Views: 667

Answers (1)

Tyler
Tyler

Reputation: 2386

Solved by running env ARCHFLAGS="-arch x86_64" bundle install

Upvotes: 1

Related Questions