http://www.perlmonks.org?node_id=807334


in reply to Installing DBD::Pg in Darwin

It sounds like you don't have a user/developer-oriented version of PostgreSQL installed - version 7.3.10 is getting on for four years old (which is positively ancient in the PostgreSQL world), and those paths you list seem to have something to do with Apple's Remote Desktop software (I don't have that installed so I can't confirm that), which is something you probably don't want to be altering.

You may find it easier to install your own copy of PostgreSQL (even if you never use it on your machine) as that'll install all the libraries/headers that DBD::Pg is after. I'm a MacPorts fan, so doing a sudo port install postgresql84 should get you everything installed in the appropriate places. My pg_config ends up in /opt/local/lib/postgresql83/bin/pg_config and the DBD::Pg install seems more than happy with that. Other alternatives: Fink and the PostgreSQL installer, though I've no idea if the latter will install pg_config and the like.

FWIW, pg_config should, I think, be a compiled binary, and not something that you can alter in a text editor - on my system, file says it's a Mach-O universal binary with 2 architectures file.

Apologies for the two-weeks-too-late response - I haven't been on PerlMonks in a while - hopefully your problem has been solved quite a while back, and, if not, hopefully the above will help a bit