This is generally confusing but here's what I think you should do:
1) Remove postgres and ruby-pg gems if they are installed; the
correct, current one is pg which should be at version 0.8.0 (assuming
you're on linux, this all might change on windows).
2) The library packages you're missing is most likely libpq-dev (on
ubuntu sudo apt-get install libpq-dev, not sure about other distros);
in addition i'd try adding in build-essential if you don't have it, as
well as ruby1.8-dev.
3) After that try doing a gem install pg; if that fails the error
message tells you where the error log is for the build, posting that
would help identify what is missing.

Good luck

\Peter

On Jan 11, 8:27 am, Rodrigo Dellacqua <[email protected]> wrote:
> Hey there,
>
> Thanks for all the answers so far, it seems that there are 3 gems currently
> working, pg, postgres, ruby-pg.
>
> But I can't get it to build, does anyone knows which libs I need to have
> installed? or where to check that?
>
> I currently have postgres-8.4-dev
>
> []s
> Rodrigo Dellacqua
>
> On Sun, Jan 10, 2010 at 7:54 PM, Phillip Koebbe 
> <[email protected]>wrote:
>
> > On Jan 10, 3:55 pm, Rodrigo Dellacqua <[email protected]> wrote:
> > > Hey there,
>
> > > I'm trying to get started with RoR with Postgresql.
>
> > > I've been trying to find some information on it, but there's a lot of
> > really
> > > OLD info on that subject!
>
> > > What should I do to get my application working with Postgresql?
>
> > > I get an error while trying to install the gem.
>
> > > After reading i thought many info about alot of different gems.
>
> > > Which one is the right one?
>
> > Hi Rodrigo
>
> > I'm using PostgreSQL 8.3.x and the pg gem.
>
> > Peace,
> > Phillip
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<rubyonrails-talk%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to