Hello, is there any way to get a windows i386 bin version of the postgresql driver? Or I''m missing something here? What I get trying to install postgres*.gem is: C:\Sorgenti\Tacche>gem install c:\temp\postgres-0.7.1.gem C:\Sorgenti\Tacche>"c:\programmi\ruby\bin\ruby.exe" "c:\programmi\ruby\bin\gem" install c:\temp\postgres-0.7.1.gem Attempting local installation of ''c:\temp\postgres-0.7.1.gem'' Building native extensions. This could take a while... ERROR: Error installing gem c:\temp\postgres-0.7.1.gem[.gem]: ERROR: Failed to build gem native extension. Gem files will remain installed in c:/programmi/ruby/lib/ruby/gems/1.8/gems/postgres-0.7.1 for inspection. ruby extconf.rb install c:\temp\postgres-0.7.1.gem\nchecking for cygwin32_socket() in wsock32.lib... no checking for socket() in socket.lib... no checking for gethostbyname() in inet.lib... no checking for gethostbyname() in nsl.lib... no checking for sys/un.h... no checking for socket()... no checking for cygwin32_socket()... no Results logged to c:/programmi/ruby/lib/ruby/gems/1.8/gems/postgres-0.7.1/gem_make.out
Leonardo Francalanci wrote:> Hello, > > is there any way to get a windows i386 bin version of the postgresql > driver? Or I''m missing something here? What I get trying to install > postgres*.gem is:I gave up on that and installed Michael Neumann''s wonderful pure-Ruby PostgreSQL driver. gem install postgres-pr It''s that easy. Jim -- Jim Menard, jimm-Xhj3G7Rj6JI@public.gmane.org, http://www.io.com/~jimm "Source code in files. How quaint." -- Attributed to Kent Beck
> I gave up on that and installed Michael Neumann''s wonderful pure-Ruby > PostgreSQL driver.Oh, got it! It worked. Thank you! Anyway, I had no problems installing the "native" driver under linux.
> Attempting local installation of ''c:\temp\postgres-0.7.1.gem'' > Building native extensions. This could take a while... > ERROR: Error installing gem c:\temp\postgres-0.7.1.gem[.gem]: ERROR: > Failed to build gem native extension. > Gem files will remain installed in > c:/programmi/ruby/lib/ruby/gems/1.8/gems/postgres-0.7.1 for inspection. > ruby extconf.rb install c:\temp\postgres-0.7.1.gem\nchecking for > cygwin32_socket() in wsock32.lib... no > checking for socket() in socket.lib... no > checking for gethostbyname() in inet.lib... no > checking for gethostbyname() in nsl.lib... no > checking for sys/un.h... no > checking for socket()... no > checking for cygwin32_socket()... noThe native driver wants to use cygwin for something. Postgres until version 8 only ran under cygwin, but now runs natively under windows. I''m not sure why the driver wants cygwin though - there''s been a windows native client library for years. As said already, just use the pure ruby driver. -- Phillip Hutchings http://www.sitharus.com/ sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org / sitharus-QrR4M9swfipWk0Htik3J/w@public.gmane.org