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

Discussion in 'Perl Misc' started by timnels@gmail.com, Feb 13, 2006.

  1. Guest

    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
     
    , Feb 13, 2006
    #1
    1. Advertising

  2. Guest

    you should run perl -V on that machine and see if the INC contains
    those paths.
     
    , Feb 13, 2006
    #2
    1. Advertising

  3. Paul Lalli Guest

    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
     
    Paul Lalli, Feb 13, 2006
    #3
  4. Paul Lalli Guest

    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
     
    Paul Lalli, Feb 13, 2006
    #4
  5. Guest

    Sorry. Having a real bad day. Cpio didn't contain all the files :-(
     
    , Feb 13, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Asfand Yar Qazi
    Replies:
    4
    Views:
    419
    Asfand Yar Qazi
    Nov 12, 2004
  2. Martin M.
    Replies:
    4
    Views:
    359
    Simon Brunning
    Dec 15, 2005
  3. Dave Rudolf
    Replies:
    1
    Views:
    311
    Kai-Uwe Bux
    May 17, 2006
  4. Justin Wyllie
    Replies:
    5
    Views:
    258
    Peter Pan
    Jan 11, 2005
  5. Teo
    Replies:
    3
    Views:
    179
Loading...

Share This Page