Can't install gem postgre for Ruby

Isak wrote:

Hello,

I have two computers and in one I can install the gem as expected,
but in the other, I can't.

The differences are that in the one that I can, I compiled&installed postgre myself, in the one that doesn't work, the installation has
been made with the the .dmg file from enterprisedb

I think the swiches you need to add are --with-pgsql-include-dir
and -- with-pgsql-lib-dir. If the .dmg does indeed include the required headers and libraries, that is. You could also just go with the postgres-pr (pr for "pure ruby") gem if this isn't a production server.

PS: It's "pg", "Postgres" or "PostgreSQL", not "Postgre".

thanks for the clarification. I don't know how to add those switches without getting an error.

gem install foo -- --with_something_dir=...

Fred

Frederick Cheung wrote:

After uninstalling and installing again from source code, I'm having the same problem ...

Wich postgres gem versuion it's the most newer for Ruby ?

This is a new project, I don't care for old compatibilities, I think the newest is the one I'm trying to install.

Do I have to specify some special options while compiling/installing postgresql from source ?

The only difference from one computer (works) to the other (doesn't work) is the postgresql version:

8.3 works 8.3.5 doesn't work (can't find the libraries ...)

Any help would be much appreciated ...

thanks,

r.