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.
Which gem (there are several)? What error?
After reading i thought many info about alot of different gems.
Which one is the right one?
I believe I’m using the postgres gem, though I’ll verify that when I’m
not posting from my iPhone. Others have reported success with
postgres-pr (pure ruby) or pg.
Search the list archives for more, or perhaps there’s information at
Robby on Rails, since he uses Postgres.
Gem files will remain installed in
/var/lib/gems/1.9.1/gems/postgres-0.7.9.2008.01.28 for inspection.
Results logged to
/var/lib/gems/1.9.1/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out
What do I need to have installed so they build properly?
[]'s
Rodrigo D.
On Sun, Jan 10, 2010 at 11:09 PM, Marnen Laibow-Koser
This is generally confusing but here’s what I think you should do:
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).
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.
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.
I’m on OS X and it’s not easy to get going out of the box - IIRC i
usually
have an issue with a postgres gem when I use ports.
I’m looking into it now.
On Mon, Jan 11, 2010 at 2:28 PM, Marnen Laibow-Koser [email protected]wrote:
Thanks for your suggestion - I’m not in the habit of throwing something
out
when with some patience
I can learn something new.
Agreed, but there’s also no sense in using the wrong tool for the job.
Well be both can agree on that. I know from a long history of using
software that packages like fink or macports often have bugs and
occasionally we encounter them. After all, we programmers are human and
make
mistakes.