[lug] @INC problems

John Starkey jstarkey at advancecreations.com
Tue Oct 31 19:24:52 MST 2000


Thanks a lot for the help. I had to go with emumail. In a fraction of the
time I've spent on Neomail _just_today_ I've managed to get qpopper and
emu working.

I tried out postaci yesterday. I loved the interface sample on their page,
but I couldn't get it working either. End of Script errors.

The only problem so far with emu is that it's $3000 for the source or you
have to stare at ads all day. 

Thanks again

On 31 Oct 2000, Tkil wrote:

> >>>>> "John" == John Starkey <jstarkey at advancecreations.com> writes:
> 
> John> push (@INC, "/var/neomail")
> 
> John> to 
> 
> John> push (@INC, ".")
> 
> note that "require" is done at compile-time, before any statements are
> executed.  if you want to make sure that /var/neomail is on the
> include path, use:
> 
>    use lib '/var/neomail';
> 
> at the top of your script.
> 
> my overall feeling so far is that this shouldn't be this hard, and
> that something really obvious is missing.  i don't know what that
> would be, tho.
> 
> (and it seems that screwy permissions will in fact cause the "can't
> find" error:
> 
> | $ touch foo.pm
> | $ chmod 0 foo.pm
> | $ ls -al foo.pm
> | ----------    1 tkil     tkil            0 Oct 31 18:44 foo.pm
> | $ perl -Mfoo -lwe 'print "hi mom"';
> | Can't locate foo.pm in @INC (@INC contains:
> |   /usr/lib/perl5/5.00503/i386-linux 
> |   /usr/lib/perl5/5.00503
> |   /usr/lib/perl5/site_perl/5.005/i386-linux
> |   /usr/lib/perl5/site_perl/5.005 
> |   .).
> | BEGIN failed--compilation aborted.
> | $ chmod 644 foo.pm
> | $ perl -Mfoo -lwe 'print "hi mom"';
> | foo.pm did not return a true value.
> | BEGIN failed--compilation aborted.
> | $ echo "1;" >> foo.pm
> | $ perl -Mfoo -lwe 'print "hi mom"';
> | hi mom
> 
> so you might want to make sure that the permissions really are
> correct.
> 
> t.
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 





More information about the LUG mailing list