BruceDB has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
First, here's some stats about my environment:
Configuring DBD::Pg 2.15.1 PostgreSQL version: 70310 (default port: 5432) OS: darwin
I'm using MCPAN to install.
During the installation process I am asked the following question: "Path to pg_config?"
Using "locate pc_config" I find it at "/System/Library/CoreServices/RemoteManagement/rmdb.bundle/bin/pg_config"
I enter that as the answer. The process continues and I get the following:
POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.roo +t~225//System/Library/CoreServices/RemoteManagement/rmdb.bundle/inclu +de POSTGRES_LIB: /BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~22 +5//System/Library/CoreServices/RemoteManagement/rmdb.bundle/lib OS: darwin The value of POSTGRES_INCLUDE points to a non-existent directory: /Bin +aryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~225//System/Library +/CoreServices/RemoteManagement/rmdb.bundle/include Cannot build unless the directories exist, exiting.
According to http://kobesearch.cpan.org/htdocs/DBD-Pg/README.html, "BD::Pg needs to know where to find the libpq libraries: this is usually done by checking the output of the pg_config executable."
I check pc_config, and see the following:
# stored configuration values val_bindir='/BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~225/ +/System/Library/CoreServices/RemoteManagement/rmdb.bundle/bin' val_includedir='/BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~ +225//System/Library/CoreServices/RemoteManagement/rmdb.bundle/include +' val_includedir_server='/BinaryCache/RemoteDesktopDB/RemoteDesktopDB-10 +5.root~225//System/Library/CoreServices/RemoteManagement/rmdb.bundle/ +include/postgresql/server' val_libdir='/BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~225/ +/System/Library/CoreServices/RemoteManagement/rmdb.bundle/lib' val_pkglibdir='/BinaryCache/RemoteDesktopDB/RemoteDesktopDB-105.root~2 +25//System/Library/CoreServices/RemoteManagement/rmdb.bundle/lib/post +gresql'
One question I have is the first part of the path (up to root~225/). I don't have a directory /Binary/... in my system. Is it okay to update this file (pg_config) and remove the first part of the path)? The path beginning with /System/... does exist.
Thanks,
- Bruce
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing DBD::Pg in Darwin
by zwon (Abbot) on Nov 03, 2009 at 20:21 UTC | |
|
Re: Installing DBD::Pg in Darwin
by john_oshea (Priest) on Nov 15, 2009 at 23:51 UTC |