Ruby on Rails and Postgres - Installing postgresql gem

Hi, Rodrigo:

What's your error? What environment are you running under?

We have it working fine with a PostgreSQL dbase.I believe the gem is: pg(0.8.0).

Thanks,

Gary.

Hey Rodrigo and All.

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.

What platform are you working on Rodrigo?

Curtis Schofield wrote:

Hey Rodrigo and All.

I'm on OS X and it's not easy to get going out of the box

Actually it's quite easy. Install PostgreSQL, install headers (perhaps through Fink), install gem. Done.

- IIRC i usually have an issue with a postgres gem when I use ports.

So don't use ports!

I'm looking into it now.

What platform are you working on Rodrigo?

Best,

I’m glad it was easy for you.

  • IIRC i

usually

have an issue with a postgres gem when I use ports.

So don’t use ports!

Thanks for your suggestion - I’m not in the habit of throwing something out when with some patience I can learn something new.

For anyone else who’s had trouble with macports here is a walk through.

http://robotarmyma.de/post/329089358/postgresql-gem-pg-macmin-x86-64bit-macports

Big thanks to the note http://www.icoretech.org/2009/08/how-to-install-pg-postgresql-gem-on-snow-leopard-64-bit/

Curtis Schofield wrote:

I'm glad it was easy for you.

- IIRC i > usually > have an issue with a postgres gem when I use ports.

So don't use ports!

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.

For anyone else who's had trouble with macports here is a walk through.

http://robotarmyma.de/post/329089358/postgresql-gem-pg-macmin-x86-64bit-macports

Big thanks to the note http://www.icoretech.org/2009/08/how-to-install-pg-postgresql-gem-on-snow-leopard-64-bit/

Best,

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.