@INC strangeness

R

R McGlue

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
 
P

Paul Lalli

R McGlue said:
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
 
R

R McGlue

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
 

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

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top