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

In reply to Installing DBD::Pg in Darwin by BruceDB

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.