* Ara.T.Howard <Ara.T.Howard / noaa.gov> [1024 19:24]:
> 
> am i doing something stupid here?
> 
> ~/ruby-postgres-0.7.1 > ruby extconf.rb  --with-pgsql-lib-dir=/usr/lib/ 
> checking for cygwin32_socket() in -lwsock32... no
> checking for socket() in -lsocket... no
> checking for gethostbyname() in -linet... no
> checking for gethostbyname() in -lnsl... yes
> checking for sys/un.h... yes
> checking for socket()... yes
> checking for hsterror()... no
> checking for gethostname()... yes
> Using PostgreSQL lib directory: /usr/lib/
> checking for PQsetdbLogin() in -lpq... no
> Could not find PostgreSQL libraries: Makefile not created
> 
> ~/ruby-postgres-0.7.1 > strings /usr/lib/libpq.so.3 | grep PQsetdbLogin
> PQsetdbLogin

Just a guess, but is there a /usr/lib/libpq.so there (symlinked to 
the above )? If not, try making one.

> from mkmf.log:
> 
> "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux 
> -I/usr/local/lib/ruby/1.8/i686-linux   conftest.c  -L"/usr/local/lib" 
> -L/usr/lib/     -lnsl  -lruby-static -lpq -lnsl  -ldl -lcrypt -lm   -lc"
> /usr/bin/ld: cannot find -lpq

-- 
If we can hit that bull's-eye, the rest of the dominoes will fall like a
house of cards... Checkmate! - Zapp. Brannigan
Rasputin :: Jack of All Trades - Master of Nuns