From: theLemcke Date: 2011-03-01T02:20:30+09:00 Subject: Trying to install pg on 32bit Snow Leopard 10.6 I'm trying to install the "pg" gem on 32-bit snow leopard and I'm encountering the following error: $ sudo env ARCHFLAGS="-arch i386" gem install pg -v=0.9.0 Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /opt/local/bin/ruby extconf.rb checking for pg_config... yes MacOS X build: fixing architecture flags: using the value in ARCHFLAGS environment variable ("-arch i386"). 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) *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/opt/local/bin/ruby --with-pg --without-pg --with-pg-config --without-pg-config --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --enable-static-build --disable-static-build --with-pqlib --without-pqlib --with-libpqlib --without-libpqlib --with-ms/libpqlib --without-ms/libpqlib Any suggestions or help?