@INC strangeness

Discussion in 'Perl Misc' started by R McGlue, Oct 15, 2004.

  1. R McGlue

    R McGlue Guest

    error as follows

    bash-2.03$ ./!!
    ../spamstats0.6a.pl -help
    Can't locate Compress/Zlib.pm in @INC (@INC contains:
    /usr/perl5/5.00503/sun4-so
    laris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris
    /usr/perl5/site
    _perl/5.005 .) at ./spamstats0.6a.pl line 155.
    BEGIN failed--compilation aborted at ./spamstats0.6a.pl line 155.

    so it cant find what its lookin for even though i have installed it


    bash-2.03$ perl -e "print join(\"\n\", @INC);"
    /usr/local/lib/perl5/5.6.1/sun4-solaris
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
    bash-2.03$


    why is it still looking at the eralier version of perl in /usr/bin/perl
    as oppossed to usr/local/bin given by

    bash-2.03$ which perl
    /usr/local/bin/perl
    bash-2.03$ perl -v

    This is perl, v5.6.1 built for sun4-solaris

    Copyright 1987-2001, Larry Wall

    Perl may be copied only under the terms of either the Artistic License
    or the
    GNU General Public License, which may be found in the Perl 5 source kit.

    Complete documentation for Perl, including FAQ lists, should be found on
    this system using `man perl' or `perldoc perl'. If you have access to the
    Internet, point your browser at http://www.perl.com/, the Perl Home Page.

    thanks for the help

    help me finish the week on a positive note perlmongers!!

    ronan
    R McGlue, Oct 15, 2004
    #1
    1. Advertising

  2. R McGlue

    Paul Lalli Guest

    "R McGlue" <> wrote in message
    news:ckopqq$rig$...
    > error as follows
    >
    > bash-2.03$ ./!!
    > ./spamstats0.6a.pl -help
    > Can't locate Compress/Zlib.pm in @INC (@INC contains:
    > /usr/perl5/5.00503/sun4-so
    > laris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris
    > /usr/perl5/site
    > _perl/5.005 .) at ./spamstats0.6a.pl line 155.
    > BEGIN failed--compilation aborted at ./spamstats0.6a.pl line 155.
    >
    > so it cant find what its lookin for even though i have installed it
    >
    >
    > bash-2.03$ perl -e "print join(\"\n\", @INC);"
    > /usr/local/lib/perl5/5.6.1/sun4-solaris
    > /usr/local/lib/perl5/5.6.1
    > /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
    > /usr/local/lib/perl5/site_perl/5.6.1
    > /usr/local/lib/perl5/site_perl
    > bash-2.03$
    >
    >
    > why is it still looking at the eralier version of perl in

    /usr/bin/perl
    > as oppossed to usr/local/bin given by
    >
    > bash-2.03$ which perl
    > /usr/local/bin/perl


    Well, you didn't provide any code, so there's no way to be sure, but I'd
    be willing to bet your shebang line in spamstats0.6a.pl is
    #!/usr/bin/perl
    instead of
    #!/usr/local/bin/perl

    Paul Lalli
    Paul Lalli, Oct 15, 2004
    #2
    1. Advertising

  3. R McGlue

    R McGlue Guest

    yeah paul absoluly right - although i did think of that 5 seconds after
    posting.... thanks fr the help though

    have a good weekend all!

    ronan
    R McGlue, Oct 15, 2004
    #3
    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. Munnki
    Replies:
    2
    Views:
    511
    Munnki
    Dec 18, 2003
  2. Joe
    Replies:
    3
    Views:
    454
  3. Stimp

    CDONTS strangeness

    Stimp, May 17, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    405
    Tarren
    May 17, 2005
  4. Robert M. Gary

    Strangeness with Japanese, XML, Java

    Robert M. Gary, Apr 15, 2005, in forum: Java
    Replies:
    2
    Views:
    444
    Soren Kuula
    Apr 15, 2005
  5. Replies:
    3
    Views:
    1,568
Loading...

Share This Page