Perl can't locate modules, but they are there!

T

timnels

I know I've done this before. I downloaded and created a bunch of
modules DBI, DBD::Informix, WML::Twig, etc and built them on an AIX 5.3
machine. I then cpio'ed up the files that were added to /usr/opt/perl
and dropped them down on another 5.3 machine (that machine didn't have
cc_r). Now even though the files are there I keep getting...

Can't locate DBI.pm in @INC (@INC contains:
/usr/opt/perl5/lib/5.8.2/aix-thread-
multi /usr/opt/perl5/lib/5.8.2
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-mul
ti /usr/opt/perl5/lib/site_perl/5.8.2 /usr/opt/perl5/lib/site_perl
..) at -e line
1.
BEGIN failed--compilation aborted at -e line 1.

....but the files are there:

/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/DBI.so
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/DBI.bs
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/.packlist
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Changes.pm
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Roadmap.pm
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/SQL
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Const
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Const/GetInfo
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/DBD
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/ProfileDumper
 
P

Paul Lalli

I know I've done this before. I downloaded and created a bunch of
modules DBI, DBD::Informix, WML::Twig, etc and built them on an AIX 5.3
machine. I then cpio'ed up the files that were added to /usr/opt/perl
and dropped them down on another 5.3 machine (that machine didn't have
cc_r). Now even though the files are there I keep getting...

Can't locate DBI.pm in @INC (@INC contains:
/usr/opt/perl5/lib/5.8.2/aix-thread-
multi /usr/opt/perl5/lib/5.8.2
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-mul
ti /usr/opt/perl5/lib/site_perl/5.8.2 /usr/opt/perl5/lib/site_perl
.) at -e line
1.
BEGIN failed--compilation aborted at -e line 1.

...but the files are there:

/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/DBI.so
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/DBI.bs
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/.packlist
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Changes.pm
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Roadmap.pm
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/SQL
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Const
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/Const/GetInfo
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/DBD
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/DBI/ProfileDumper

Not a single one of these files is DBI.pm

It is very specifically DBI.pm that Perl is telling you it can't find.
Your assertion that the "files are there" is false.

Paul Lalli
 
P

Paul Lalli

you should run perl -V on that machine and see if the INC contains
those paths.

1) Quote context when you compose a reply. Have you seen the posting
guidelines for this group?

2) The error message already very specifically tells the user what
directories are in @INC.

Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top