Re: ruby connect

From: Richard Huxton <dev(at)archonet(dot)com>
To: Justin Carrera <j-carrera(at)northwestern(dot)edu>, PgSql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: ruby connect
Date: 2009-06-01 15:38:55
Message-ID: 4A23F60F.3090507@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-hackers

Justin Carrera wrote:
> I will remember that for next time.
>
> Thank you for the link.
>
> I tried installing the gem but unsuccessful...
>
> root(at)CodeHo:/home/justin/Documents/ruby# gem install postgres -- --with-pgsql-include=/opt/PostgreSQL/8.3/include --with-pgsql-lib=/opt/PostgreSQL/8.3/lib
> Building native extensions. This could take a while...
> ERROR: Error installing postgres:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby1.9 extconf.rb install postgres -- --with-pgsql-include=/opt/PostgreSQL/8.3/include --with-pgsql-lib=/opt/PostgreSQL/8.3/lib
> extconf.rb:4:in `<main>': uninitialized constant PLATFORM (NameError)

I'm afraid I don't use ruby, so I can't provide specific advice.
However, this looks to me like the gem installer expects a PLATFORM
(e.g. "linux") to be defined and can't find it. I'd expect there is a
guide to setting up your gems environment somewhere on the ruby pages
though.

However, before you spend too long with this - are you sure there isn't
an Ubuntu package for this? A few seconds' searching suggests this might
be what you're after:
http://packages.ubuntu.com/search?keywords=libpgsql-ruby

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Shellam 2009-06-01 16:11:37 Re: Security question UNIX Sockets vs CIDR style access
Previous Message Kevin Kempter 2009-06-01 15:06:39 Security question UNIX Sockets vs CIDR style access

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-06-01 16:04:52 Re: pg_dump & table space
Previous Message Shak 2009-06-01 15:21:27 Using results from DELETE ... RETURNING

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-06-01 15:39:15 Re: pg_migrator and an 8.3-compatible tsvector data type
Previous Message Robert Haas 2009-06-01 15:34:49 Re: pg_migrator and an 8.3-compatible tsvector data type