bundle failing - Can't find the PostgreSQL client library (libpq) [duplicate] bundle failing - Can't find the PostgreSQL client library (libpq) [duplicate] ruby ruby

bundle failing - Can't find the PostgreSQL client library (libpq) [duplicate]


My solution ended up at this

ARCHFLAGS="-arch x86_64" bundle install


Based on this post's answer and it worked for me (Yosemite OSX 10.10), you can try the following:

$ sudo su$ env ARCHFLAGS="-arch x86_64" gem install pg

You don't have to reinstall pg from homebrew.


sudo ARCHFLAGS="-arch x86_64" gem install pg
DID THE TRICK FOR ME...thanks for tip on a thread given by Jakob@github

My system: OSX 10.9.4, Ruby 2.0.0, local ( non-homebrew) Postgresql 9.3.5

Building native extensions.  This could take a while...Successfully installed pg-0.17.1invalid options: -f fivefish(invalid options are ignored)Parsing documentation for pg-0.17.1unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/pg_ext.bundle, skippingInstalling ri documentation for pg-0.17.11 gem installed