Re: [siesta-dev] package "Class::Accessor" is empty

[prev] [thread] [next] [lurker] [Date index for 2004/10/14]

From: Bowen Dwelle
Subject: Re: [siesta-dev] package "Class::Accessor" is empty
Date: 19:59 on 14 Oct 2004
I have lots of my modules that Siesta requires installed in
/home/bdwelle/lib. I have
PERLLIB=/home/bdwelle/lib:/home/bdwelle/lib/i386-linux set in my shell,
and nacho, tequila work fine from the shell. They must be picking up
Class::Accessor from somewhere else in @INC, indeed

   %ENV:
     PERLLIB="/home/bdwelle/lib:/home/bdwelle/lib/i386-linux"
   @INC:
     /home/bdwelle/lib
     /home/bdwelle/lib/i386-linux
     /usr/local/lib/perl/5.6.1
     /usr/local/share/perl/5.6.1
     /usr/lib/perl5
     /usr/share/perl5
     /usr/lib/perl/5.6.1
     /usr/share/perl/5.6.1
     /usr/local/lib/site_perl

bdwelle:~> ls /usr/share/perl/5.6.1/Class/
Accessor  Accessor.pm  DBI  DBI.pm  Data  Inner.pm  Singleton.pm
Struct.pm  Trigger.pm  WhiteHole.pm
bdwelle:~>

BUT when tequila is run from .procmailrc, it doesn't seem to be picking
up the full @INC...

I installed Class::Accessor in /home/bdwelle/lib, and then it moved on
and started complaining about another package:

procmail: Executing "/home/bdwelle/bin/tequila,post,info-list"
Can't locate Template.pm in @INC (@INC contains: /home/bdwelle/lib
/home/bdwelle/lib/i386-linux /usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at
/home/bdwelle/lib/Siesta.pm line 14.

however, that package should be findable in that @INC:

bdwelle:~> ls /usr/lib/perl/5.6.1/Template*
/usr/lib/perl/5.6.1/Template.pm

/usr/lib/perl/5.6.1/Template:
Base.pm       Directive.pm  Filters.pm   Manual       Parser.pm
Provider.pm  Test.pm       View.pm
Config.pm     Document.pm   Grammar.pm   Manual.pod   Plugin
Service.pm   Tools
Constants.pm  Exception.pm  Iterator.pm  Modules.pod  Plugin.pm   Stash
        Tutorial
Context.pm    FAQ.pod       Library      Namespace    Plugins.pm
Stash.pm     Tutorial.pod
bdwelle:~>

I did check, and /usr/local/bin/perl is a symlink to /usr/bin/perl. I 
even changed the shebang to /usr/bin/perl... still the same. What's with 
the strange @INC behavior?

Simon Wistow wrote:
> On Thu, Oct 14, 2004 at 11:14:33AM -0700, Bowen Dwelle said:
> 
>>Now I'm trying to hook Siesta in via .procmailrc, as Dakkar outlined here:
>>http://siesta.unixbeard.net/siesta/archive/siesta-dev/2004/04/20/1b13db41.html
>>
>>I'm getting a compilation error; here's the procmail log. BTW, I can run 
>>tequila just fine from the shell, and it even delivers mail!
> 
> 
> Ok, it looks like you've installed your Perl modules in a none-standard 
> location 
> 
> This looks like it could be your problem 
> 
> http://lists.netthink.co.uk/pipermail/maypole/2004-May/000191.html
> 
> What does 
> 
> 	/home/bdwelle/lib/Class/Accessor.pm
> 
> look like? Does it exist?
> 
> Simon
> 

Generated at 14:00 on 11 Nov 2004 by mariachi 0.52