I have been trying for some time now to get DBD::Pg to install via PPM on version 5.10 of ActivePerl. I'm hoping some esteemed Monk will be able to offer some insights.

I have installed the following under Windows Vista:

Postgresql v8.4 (latest windows binary)
ActivePerl 5.10.1 (again, latest windows binary)
DBD::Pg via PgFoundry

When I try to run a simple script with a call to DBI->connect() I get the following:

Runtime Error! (in a Windows alert dialog) Program: C:\Perl\bin\perl.exe R6034 An application has made an attempt to load the C runtime library incor +rectly. Please contact the application's support team for more information
In the Command prompt window there is a different error message:

install_driver(Pg) failed: Can't load 'C:\Perl\site\lib\auto\DBD\Pg\Pg +.dll' for module DBD::Pg ...
I have gone through this node in great detail, as well as many other posts in various forums (PgFoundry, ActiveSite, etc), and can't get anywhere. I gather that the problem is some incompatability between the MSVC runtime libraries that Perl.exe expects and what it finds, as there are a number of posts about sticking MSCVR80.dll or perl.exe.manifest files in the perl/bin directory to make the interpreter happy. I have tried many iterations of this, and I am convinced that I have compatible versions of MSVCR80.dll and a manifest describing it that Perl.exe can find, but I still get this same set of errors. Any insights would be greatly appreciated!

Sincerely,

Scott W.


In reply to DBD::Pg on Windows with ActivePerl by tswall

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.