"Leonardo Alves (VetorialNet)" wrote:
>
> Hi,
>
> I'm just start to deal with cyrus and I'm having problems to use
> cyradm. When it was called the message showed was:
>
> [cyrus@mobile2 /]$ cyradm
> Can't locate Cyrus/IMAP/Shell.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.
>
> I've seachead for Shell.pm and the results was:
>
> [cyrus@mobile2 /]$ locate Shell.pm
> /usr/lib/perl5/5.00503/Shell.pm
> /usr/lib/perl5/site_perl/5.005/i386-linux/DBI/Shell.pm
> /usr/local/lib/perl5/site_perl/5.005/i386-linux/Cyrus/IMAP/Shell.pm
> /usr/cyrus/perl/imap/IMAP/Shell.pm
> /usr/cyrus/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm
>
> I cannot understand what's going on. Somebody could help me?
>
> []s.
> Leonardo Alves De Paula e Silva
> <[EMAIL PROTECTED]>
> _________________________________________________________
> V e t o r i a l N e t I n t e r n e t P r o v e d o r
> http://www.vetorialnet.com.br
> (53) 231.1888
Hi,
Perl is searching for Cyrus/IMAP/Shell.pm in
/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
or your cyrus libs are in
/usr/local/lib/perl5/site_perl/5.005/i386-linux
You have 2 solutions :
-copy or move these libs to the right place
-add /usr/local/lib/perl5/site_perl/5.005/i386-linux to perl library
path.
Be sure these libs are readable by any user :)
Cheers,
Prune