mhi has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tweaking DynaLoader's path without write access to the perl installation
by hv (Prior) on May 30, 2004 at 22:15 UTC | |
by tachyon (Chancellor) on May 31, 2004 at 00:40 UTC | |
|
Re: Tweaking DynaLoader's path without write access to the perl installation
by tachyon (Chancellor) on May 31, 2004 at 00:35 UTC | |
|
Re: Tweaking DynaLoader's path without write access to the perl installation
by El Linko (Beadle) on May 30, 2004 at 23:07 UTC |