> I have tried specifying library path when invoking extconf.rb, using
> this syntax:
>
> ruby extconf.rb --with-pgsql-include-dir=/usr/local/pgsql/include \
> --with-pgsql-lib-dir=/usr/local/pgsql/lib
>
> ...but I still get the same error that it can't find the postgres libs,
> although I have verified that the libraries in question are present in
> the specified location.

Another solution would be to edit the extconf.rb file, remove the 
"have_func" calls that are preventing it from creating the make file, 
create the makefile, and deal with linker errors that come up from the 
make by editing the makefile.

Scott