From: Logan Capaldo Date: 2005-09-08T05:20:34+09:00 Subject: Re: compiling posgres gem fails on osx On Sep 2, 2005, at 6:11 PM, Stephan Mueller wrote: > Hi, > > I am trying to install the postgres gem on OSX with this command: > > sudo ruby extconf.rb --with-psql-include-dir=/sw/include/ > postgresql/ \ > --with-psql-lib-dir=/sw/lib/ > > This fails with this output: > > checking for cygwin32_socket() in -lwsock32... no > checking for socket() in -lsocket... no > checking for gethostbyname() in -linet... no > checking for gethostbyname() in -lnsl... no > checking for sys/un.h... yes > checking for socket()... no > checking for cygwin32_socket()... no > > I installed postgresql8 (plus -dev) via Fink from source. Can somebody > help me to get this to work? > > > Cheers, > > - Steph. > > I recently ran into this problem myself. This page: http:// blog.humlab.umu.se/samuel/archives/000019.html helped immensely The other option is the pure ruby Postgre interface, which I used on Windows. (Developing on a Mac, deploying on windows, don't ask.) gem install postgres-pr