From owner-freebsd-ruby@FreeBSD.ORG Wed Oct 5 17:23:34 2011 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id ACECE106566C for ; Wed, 5 Oct 2011 17:23:34 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 116AA14EF2B; Wed, 5 Oct 2011 17:23:34 +0000 (UTC) Message-ID: <4E8C9295.8080505@FreeBSD.org> Date: Wed, 05 Oct 2011 10:23:33 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1 MIME-Version: 1.0 To: ruby@FreeBSD.org X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jeff Wheelhouse Subject: Install fails for databases/rubygem-pg with postgresql-client-8.4.8 X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 17:23:34 -0000 I have postgresql-client-8.4.8 newly installed on a clean system and got the following in databases/rubygem-pg: ===> Checking if databases/rubygem-pg already installed /usr/bin/env /usr/local/bin/gem18 install -l --no-update-sources --no-ri --install-dir /usr/local/lib/ruby/gems/1.8 /usr/ports/distfiles/rubygem/pg-0.11.0.gem -- --build-args --with-pgsql-include-dir=`/usr/local/bin/pg_config --includedir` --with-pgsql-lib-dir=`/usr/local/bin/pg_config --libdir` Building native extensions. This could take a while... ERROR: Error installing /usr/ports/distfiles/rubygem/pg-0.11.0.gem: ERROR: Failed to build gem native extension. /usr/local/bin/ruby18 extconf.rb --build-args --with-pgsql-include-dir=/usr/local/include --with-pgsql-lib-dir=/usr/local/lib checking for pg_config... yes Using config values from /usr/local/bin/pg_config 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 --without-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=/usr/local/bin/ruby18 --with-pg --without-pg --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config --with-pqlib --without-pqlib --with-libpqlib --without-libpqlib --with-ms/libpqlib --without-ms/libpqlib Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/pg-0.11.0 for inspection. Results logged to /usr/local/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/gem_make.out *** Error code 1 Stop in /usr/ports/databases/rubygem-pg. Thanks, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/