Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl can't locate modules, but they are there!

Reply
Thread Tools

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

 
 
timnels@gmail.com
Guest
Posts: n/a
 
      02-13-2006
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

 
Reply With Quote
 
 
 
 
newtan@gmail.com
Guest
Posts: n/a
 
      02-13-2006
you should run perl -V on that machine and see if the INC contains
those paths.

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      02-13-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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

 
Reply With Quote
 
Paul Lalli
Guest
Posts: n/a
 
      02-13-2006
(E-Mail Removed) wrote:
> 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

 
Reply With Quote
 
timnels@gmail.com
Guest
Posts: n/a
 
      02-13-2006
Sorry. Having a real bad day. Cpio didn't contain all the files

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have been trying to locate a reliable Message board submitter but? khanbaba C++ 1 07-17-2009 04:48 PM
I have been trying to locate a reliable Message board submitter but? khanbaba C++ 0 07-17-2009 02:14 PM
They are gaming Hays, Schwartkopff adn Mclean today, which means they are ealy doing something else, but I have to figure that yet. The game is fixed, how can the company ever win? profpsychoticmrs@aol.com Computer Support 0 03-08-2006 04:24 PM
Classpath problem: javap is able to locate one class in a jar but not the other. Chandresh Prakash Java 1 12-05-2003 12:43 PM
they turn, they power, they make nice pics Keith and Jenn Z. Digital Photography 0 09-21-2003 04:16 AM



Advertisments