I just installed Cyrus (2.0.14) on a brand new Redhat 7.1 installation
and everything went great until I tried to run cyradm for the first
time. It returned the following error.
# cyradm
Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
So I looked for the missing file...
# find / -name Shell.pm
/tmp/cyrus-imapd-2.0.14/perl/imap/IMAP/Shell.pm
/tmp/cyrus-imapd-2.0.14/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm
/usr/lib/perl5/5.6.0/Shell.pm
/usr/lib/perl5/5.6.0/IMAP/Shell.pm
/usr/local/lib/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Shell.pm
Since none of the above paths are in the @INC list, I copied the Perl
Cyrus directory to one of the @INC locations:
# cp -R /usr/local/lib/site_perl/5.6.0/i386-linux/Cyrus
/usr/lib/perl5/site_perl/Cyrus
Then I received a different error upon running cyradm.
# cyradm
Can't locate loadable object for module Cyrus::IMAP in @INC (@INC
contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at
/usr/lib/perl5/site_perl/Cyrus/IMAP/Admin.pm line 43
Compilation failed in require at
/usr/lib/perl5/site_perl/Cyrus/IMAP/Admin.pm line 43.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at
/usr/lib/perl5/site_perl/Cyrus/IMAP/Shell.pm line 58.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/Cyrus/IMAP/Shell.pm line 58.
Compilation failed in require.
BEGIN failed--compilation aborted.
I don't have very much Perl experience. Anyone know what is missing or
if I missed a step in the config.
Thanks,
Dan