Dear fellow Monks,

does anyone know how to change the DynaLoader's libpath from within the perl script that wants to use a library through the DynaLoader?

Background is this:

I have some perl scripts hosted on a webserver where I do not have control over the perl installation and therefore can not properly install perl add-ons. For static modules this is not a problem as I can use lib "/mypath"

This however does not seem to work for stuff that needs the DynaLoader, like use ccom. There I consistently get the message

$ Can't load '/mypath/auto/ccom/ccom.dll' for module ccom: load_file:T +he specified module could not be found at /officialperlpath/lib/DynaL +oader.pm line 206.

On the one hand this tells me, that perl actually found and understood /mypath/ccom.pm. On the other hand what really gets me is that said /mypath/auto/ccom/ccom.dll is actually right at that location, but will not be used.

Any meditations on this?

Thanks,
Mike

P.S. Of course when I go for the thing I really want to use, which is use ccom::phonet I get the error that this is not found in the path at all. I'm just thinking of taking it one step at a time at this stage.


In reply to Tweaking DynaLoader's path without write access to the perl installation by mhi

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.