Hi: Have any one installed postgres driver working in debian? If yes, could you post how do you install it? I tried to use gem install postgres and it failed. I have also tried to use Ruby extconf.rb and it also failed. In both cases, I get the following error message in the out file. checking 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 I have postgresql 7.4 installed in the machine. Thanks a lot chong
Marcel Molina Jr.
2004-Dec-11 03:28 UTC
Re: anyone get ruby posgres driver works in debian
On Fri, Dec 10, 2004 at 09:24:11PM -0600, ChongQing Xiao wrote:> Have any one installed postgres driver working in debian? > If yes, could you post how do you install it? > > I tried to use > gem install postgres and it failed. > > I have also tried to use > Ruby extconf.rb and it also failed. > > In both cases, I get the following error message in the out file. > > checking 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 > > I have postgresql 7.4 installed in the machine.In order for the gem extension to compile you need development files for libpq. Debian has a package called postgresql-dev. Install that and then try the gem install. Those errors you''re getting though aren''t seemingly related to what I''m suggesting... marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>
Steven Critchfield
2004-Dec-11 04:34 UTC
Re: anyone get ruby posgres driver works in debian
On Fri, 2004-12-10 at 21:24 -0600, ChongQing Xiao wrote:> Hi: > > Have any one installed postgres driver working in debian? > If yes, could you post how do you install it? > > I tried to use > gem install postgres and it failed. > > I have also tried to use > Ruby extconf.rb and it also failed. > > In both cases, I get the following error message in the out file. > > checking 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 > > I have postgresql 7.4 installed in the machine.While I happen to track experimental,unstable, and everything below on my workstation, I have rails and postgres working just fine. In case you use Debians unstable, it seems you have to use gem out of CVS. As for the postgres question, here are the packages I have installed, libpgsql-ruby1.8 libdbd-pg-ruby1.8 libdbi-ruby1.8 -- Steven Critchfield <critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org>
Hi, Steve: I do use debian unstable I have the following installed libpgsql-ruby1.8 libdbd-pg-ruby1.8 libdbi-ruby1.8 postgresql-dev My postgresql version is 7.4 I don''t thin it is gem related problem because even if I use Ruby extconf.rb, I get the same error. Could you tell me how do you install postgres? (use gem install postgres) Thanks chong -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Steven Critchfield Sent: Friday, December 10, 2004 10:35 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] anyone get ruby posgres driver works in debian On Fri, 2004-12-10 at 21:24 -0600, ChongQing Xiao wrote:> Hi: > > Have any one installed postgres driver working in debian? > If yes, could you post how do you install it? > > I tried to use > gem install postgres and it failed. > > I have also tried to use > Ruby extconf.rb and it also failed. > > In both cases, I get the following error message in the out file. > > checking for cygwin32_socket() in wsock32.lib... no checking for > socket() in socket.lib... no checking for gethostbyname() ininet.lib...> no checking for gethostbyname() in nsl.lib... no checking for > sys/un.h... no checking for socket()... no checking for > cygwin32_socket()... no > > I have postgresql 7.4 installed in the machine.While I happen to track experimental,unstable, and everything below on my workstation, I have rails and postgres working just fine. In case you use Debians unstable, it seems you have to use gem out of CVS. As for the postgres question, here are the packages I have installed, libpgsql-ruby1.8 libdbd-pg-ruby1.8 libdbi-ruby1.8 -- Steven Critchfield <critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org> _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Marcel Molina Jr.
2004-Dec-11 05:01 UTC
Re: anyone get ruby posgres driver works in debian
On Fri, Dec 10, 2004 at 10:59:41PM -0600, ChongQing Xiao wrote:> Hi, Steve: > > I do use debian unstable > I have the following installed > libpgsql-ruby1.8 > libdbd-pg-ruby1.8 > libdbi-ruby1.8 > postgresql-dev > > My postgresql version is 7.4 > > I don''t thin it is gem related problem because even if I use > Ruby extconf.rb, I get the same error. > > Could you tell me how do you install postgres? (use gem install > postgres)There are two debian packages for ruby postgres libraries you know. libdbd-pg-ruby and libpgsql-ruby. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>
Hi, Marcel: I installed both libdbd-pg-ruby and libpgsql-ruby as you have mentioned, but same error happen. I think extconf.rb somehow is checking wrong location for the network library. Also, could you tell me what is your version of postgresql server? The ruby postgres binding mentioned it will support postgresql 7.1 but my postgresql server is 7.4 Thanks chong -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Marcel Molina Jr. Sent: Friday, December 10, 2004 11:02 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] anyone get ruby posgres driver works in debian On Fri, Dec 10, 2004 at 10:59:41PM -0600, ChongQing Xiao wrote:> Hi, Steve: > > I do use debian unstable > I have the following installed > libpgsql-ruby1.8 > libdbd-pg-ruby1.8 > libdbi-ruby1.8 > postgresql-dev > > My postgresql version is 7.4 > > I don''t thin it is gem related problem because even if I use > Ruby extconf.rb, I get the same error. > > Could you tell me how do you install postgres? (use gem install > postgres)There are two debian packages for ruby postgres libraries you know. libdbd-pg-ruby and libpgsql-ruby. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org> _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Marcel Molina Jr.
2004-Dec-11 05:20 UTC
Re: anyone get ruby posgres driver works in debian
On Fri, Dec 10, 2004 at 11:17:35PM -0600, ChongQing Xiao wrote:> I installed both libdbd-pg-ruby and libpgsql-ruby as you have mentioned, > but same error happen. > > I think extconf.rb somehow is checking wrong location for the network > library. > > Also, could you tell me what is your version of postgresql server? > > The ruby postgres binding mentioned it will support postgresql 7.1 but > my postgresql server is 7.4libpgsql-ruby == the postgres gem so you don''t need to run extconf.rb. You should be all set. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>
Thanks Marcel. I get it work now. chong -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Marcel Molina Jr. Sent: Friday, December 10, 2004 11:21 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] anyone get ruby posgres driver works in debian On Fri, Dec 10, 2004 at 11:17:35PM -0600, ChongQing Xiao wrote:> I installed both libdbd-pg-ruby and libpgsql-ruby as you havementioned,> but same error happen. > > I think extconf.rb somehow is checking wrong location for the network > library. > > Also, could you tell me what is your version of postgresql server? > > The ruby postgres binding mentioned it will support postgresql 7.1 but > my postgresql server is 7.4libpgsql-ruby == the postgres gem so you don''t need to run extconf.rb. You should be all set. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org> _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails