Mail Archives: djgpp/2001/09/13/03:17:45
Bob Chapman wrote:
>
> > > > Can't locate strict.pm in @INC (@INC contains: \
> > > /dev/env/DJDIR/share/automake /dev/env/djdir/lib/perl5 \
> > > /dev/env/djdir/lib/perl5/site /dev/env/djdir/lib/perl5/site \
> > > c:/djgpp/lib/perl5/site .) \
> > > at /dev/env/DJDIR/share/automake/Automake/Struct.pm line 29.
> > > > BEGIN failed--compilation aborted \
> > > at /dev/env/DJDIR/share/automake/Automake/Struct.pm line 29.
> > > > Compilation failed in require at c:/djgpp/bin/automake line 39.
> > > > BEGIN failed--compilation aborted at c:/djgpp/bin/automake line 39.
> > >
> >
> > Very odd - you obviously have Perl, but it seems unable to find its own
> > files. Its search path seems correct as well.
> > What version of perl do you have installed? The later the better; 5.6.x
> > recommended, though not required.
> > Do you have a strict.pm file anywhere on your disk?
>
> Thanks for the reply. I had installed (and redownloaded & reinstalled - x
> many :) the contents of:
>
> -rw-r--r-- 1 REC root 4397999 Sep 11 23:13 perl561b.zip
>
> which installs a perl.exe that reports:
>
> > perl --version
> This is perl, v5.6.1 built for dos-djgpp
> . . . . .
That should be fine.
> After the installation (including the README.1st instructions :) there is a
> 'strict.pm' file located as follows:
>
> > find /djgpp -iname 'strict*'
> /djgpp/lib/perl5/strict.pm
>
> > vdir /djgpp/lib/perl5/strict.pm
> -rw-r--r-- 1 REC root 2624 Apr 16 17:30 /djgpp/lib/perl5/strict.pm
Looks fine as well; plus, this directory is included in the
reported search path. The only strange thing is that it uses
/dev/env/djdir/ instead of /dev/env/DJDIR/, but that shouldn't
make a difference I think.
try running 'perl foo.pl' with foo.pl containing
print "\$djdir is \"$ENV{'djdir'}\".\n";
print "/dev/env/djdir/djgpp.env exist\n"
if -r "/dev/env/djdir/djgpp.env";
print "\$DJDIR is \"$ENV{'DJDIR'}\".\n";
print "/dev/env/DJDIR/djgpp.env exists\n"
if -r "/dev/env/DJDIR/djgpp.env";
If it does not print that /dev/env/djdir/djgpp.env exists, there
may be a serious problem with the 5.6.1 package (it would prohibit
packages using ANY perl library packages from working). In this
case, you can probably work around it: there is a BEGIN block at
the top of automake; adding
unshift @INC, "c:/djgpp/lib/perl5";
at the end there should allow it to find strict.pm.
> FWIW, aclocal appears to work.
>
> > aclocal --version
> aclocal (GNU automake) 1.5
Not that surprising, since aclocal doesn't use any external
procedures.
- Raw text -