From: Michael Granger Date: 2010-03-05T08:07:01+09:00 Subject: Re: Installing Pg gem for PostGreSQL 8.4 On 03/04/2010 06:35 AM, Tor Erik Linnerud wrote: >> checking for pg_config... yes >> checking for libpq-fe.h... yes >> checking for libpq/libpq-fs.h... yes >> checking for PQconnectdb() in -lpq... no >> checking for PQconnectdb() in -llibpq... no >> checking for PQconnectdb() in -lms/libpq... no >> Can't find the PostgreSQL client library (libpq) > > I am having the exact same problem on a fresh install on Snow Leopard > with Ruby 1.9.1p376 and postgres installed via homebrew. This is the > last entry from mkmf.log I assume you're the anonymous creator of this ticket: http://bitbucket.org/ged/ruby-pg/issue/24/090-gem-fails-to-build as the description looks the same. If you are, you have the ARCHFLAGS environment variable set to "-arch i386", which isn't correct for Snow Leopard. Try either unsetting ARCHFLAGS, in which case the build system should detect the correct setting, or reset it manually to "-arch x86_64". If you aren't the creator of that ticket (and you aren't manually setting your ARCHFLAGS to the incorrect architecture), please file a bug with the output from 'gem install pg' here: http://bitbucket.org/ged/ruby-pg/issues/new/ and attach your mkmf.log in its entirety. Thanks! -- Michael Granger Rubymage, Architect, Believer http://FaerieMUD.org/