From: George Ogata Date: 2007-02-04T02:58:28+09:00 Subject: Re: Fail to install postgres gem On 2/4/07, Tom Copeland wrote: > On Sat, 2007-02-03 at 23:55 +0900, Damian Terentyev wrote: > > Gem files will remain installed in > > /usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1 for inspection. > > Hm, seems like it's not finding the PostgreSQL header and object files. > You can probably get it to work by moving into that directory > (/usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1) and running: > > ruby extconf.rb --with-pgsql-include-dir=/path/to/pgsql/headers > --with-pgsql-lib-dir=/path/to/pgsql/shared_libs > > and then run "make" and "make install". You can also achieve the same thing in one step with gem by passing the extconf args after '--': gem install postgres -- --with-pgsql-include-dir=...