Ah, I should have said that I already have that.

Apache/mod_perl is loading the perl DLL okay. The logic for looking up missing environment variables in the registry is actually contained in that perl DLL, so it is that which picks up the bogus PERL5LIB setting from the registry and then goes off loading the wrong versions of C extension modules' DLLs.

(The extension modules' DLLs then fail to load because they have a dependency (shown by running depends.exe) on the perl56.dll (sic) of the perl installation that resides in the location pointed to by the PERL5LIB registry setting, and that DLL can't be found because it isn't on any PATH and I don't have a LoadFile directive for it. I don't want to load perl56.dll, of course, so fixing that problem wouldn't be the fix. What I want is to stop perl58.dll from loading up the wrong versions of C extension modules' DLLs in the first place.)


In reply to Re^2: Overriding the registry's PERL5LIB in mod_perl on Win32 by shay
in thread Overriding the registry's PERL5LIB in mod_perl on Win32 by shay

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.