On Fri, Aug 28, 2009 at 04:10:59PM +0100, Steve Hay wrote:
> Nicholas Clark wrote on 2009-08-28:
> > Which will all be the same place.
> >
> > So when run from the directory C:/gitclients/perl/ext/DynaLoader, what
> do
> >
> > File::Spec::Functions::rel2abs($_,
> > 'C:/gitclients/perl/ext/DynaLoader');
> >
> > and
> >
> > File::Spec::Functions::rel2abs($_);
> >
> > generate (for ../../lib and ../../t) ?
>
> C:\gitclients\perl\ext\DynaLoader>..\..\perl -MFile::Spec::Functions -e
> "print File::Spec::Functions::rel2abs('../../lib',
> 'C:/gitclients/perl/ext/DynaLoader')"
> C:\gitclients\perl\lib
>
> C:\gitclients\perl\ext\DynaLoader>..\..\perl -MFile::Spec::Functions -e
> "print File::Spec::Functions::rel2abs('../../t',
> 'C:/gitclients/perl/ext/DynaLoader')"
> C:\gitclients\perl\t
And the same output for File::Spec::Functions::rel2abs($_); for the two
(ie no second argument)
There's also Craig's suggestion:
On Fri, Aug 28, 2009 at 10:05:44AM -0500, Craig A. Berry wrote:
> On Fri, Aug 28, 2009 at 9:50 AM, Nicholas Clark<nick@ccl4.org> wrote:
>
>
> > But it should still be the same (actual) path, and nothing is changing
> > directory here. Hence why I'm really confused, as I would have thought
> > that all the C runtime gubbins loading the DLL will be loading it either
> > as ../../lib/$whatever or C:/gitclients/perl/ext/DynaLoader/../../lib/$whatever
> > or C:/gitclients/perl/lib/$whatever
>
> Setting PERL_DL_DEBUG in the environment should get it to spit out
> where it's looking for what, assuming it's finding DynaLoader but then
> failing to find other things.
Nicholas Clark
Thread Previous
|
Thread Next