Comments on: ruby-pg is now the official postgres ruby gem http://thoughts.davisjeff.com/2007/12/14/ruby-pg-is-now-the-official-postgres-ruby-gem/ Ideas on Databases, Logic, and Language by Jeff Davis Tue, 19 Jun 2012 16:18:51 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: David Abernethy http://thoughts.davisjeff.com/2007/12/14/ruby-pg-is-now-the-official-postgres-ruby-gem/comment-page-1/#comment-15 David Abernethy Wed, 02 Jan 2008 06:51:22 +0000 http://davisjeff.wordpress.com/?p=18#comment-15 See http://wiki.rubyonrails.org/rails/pages/PostgreSQL for more information on how to use this gem. Here is what I had to do on mac OS X 10.5 with www.postgresqlformac.com/ The command line switches for the pgsql library locations have have changed, they are now --with-pgsql-include --with-pgsql-lib There are now two possible driver targets. I found it easiest to change to the gem source directory [/usr/local]/lib/ruby/gems/1.8/gems/postgres-0.7.9.2007.12.22 and build the driver from its subdirectory compat-ruby-postgres. Perhaps someone could clarify the significance of each of the drivers, and how to control which gets built and installed using gem install postgres -- See http://wiki.rubyonrails.org/rails/pages/PostgreSQL for more information on how to use this gem.

Here is what I had to do on mac OS X 10.5 with http://www.postgresqlformac.com/

The command line switches for the pgsql library locations have have changed, they are now –with-pgsql-include –with-pgsql-lib

There are now two possible driver targets. I found it easiest to change to the gem source directory
[/usr/local]/lib/ruby/gems/1.8/gems/postgres-0.7.9.2007.12.22

and build the driver from its subdirectory compat-ruby-postgres.

Perhaps someone could clarify the significance of each of the drivers, and how to control which gets built and installed using gem install postgres –

]]>