Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Can't locate Carp/Heavy.pm ? please help! (http://www.velocityreviews.com/forums/t885845-cant-locate-carp-heavy-pm-please-help.html)

joe 04-10-2004 06:52 PM

Can't locate Carp/Heavy.pm ? please help!
 
Hi I get this error when i run my script from cron
Can't locate Carp/Heavy.pm in @INC (@INC contains: AI::Categorize) at
/usr/local/lib/perl5/5.8.2/Carp.pm line 178, <STDIN> line 1.
fetchmail
when i run it form console i dont get any erros
the file Heavy.pm is where it should be
when i do perl -V from cron all the @incs paths look the same as when i do
it from console. i am running perl 5.8.2 but i have also intalled 5.6.1
please help.

John Bokma 04-10-2004 06:57 PM

Re: Can't locate Carp/Heavy.pm ? please help!
 
joe wrote:

> Hi I get this error when i run my script from cron
> Can't locate Carp/Heavy.pm in @INC (@INC contains: AI::Categorize) at
> /usr/local/lib/perl5/5.8.2/Carp.pm line 178, <STDIN> line 1.
> fetchmail
> when i run it form console i dont get any erros
> the file Heavy.pm is where it should be
> when i do perl -V from cron all the @incs paths look the same as when i do
> it from console. i am running perl 5.8.2 but i have also intalled 5.6.1
> please help.


which perl version on console, which via cron?

--
John personal page: http://johnbokma.com/

Experienced Perl / Java developer available - http://castleamber.com/

Peter J. Acklam 04-10-2004 07:08 PM

Re: Can't locate Carp/Heavy.pm ? please help!
 
John Bokma <postmaster@castleamber.com> wrote:

> joe wrote:
>
> > Hi I get this error when i run my script from cron
> > Can't locate Carp/Heavy.pm in @INC (@INC contains: AI::Categorize) at
> > /usr/local/lib/perl5/5.8.2/Carp.pm line 178, <STDIN> line 1.
> > fetchmail
> > when i run it form console i dont get any erros the file
> > Heavy.pm is where it should be when i do perl -V from cron all
> > the @incs paths look the same as when i do it from console. i
> > am running perl 5.8.2 but i have also intalled 5.6.1 please
> > help.

>
> which perl version on console, which via cron?


Things must be really screwy if it's the 5.6.1 version complaining
about an error in a 5.8.2-specific directory.

Peter


--
#!/local/bin/perl5 -wp -*- mode: cperl; coding: iso-8859-1; -*-
# matlab comment stripper (strips comments from Matlab m-files)
s/^((?:(?:[])}\w.]'+|[^'%])+|'[^'\n]*(?:''[^'\n]*)*')*).*/$1/x;


All times are GMT. The time now is 09:01 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.