Cyrus, by default, installs its perl in 
/usr/local/lib/site_perl/5.6.0/i386-linux/

Most of the perl scripts need @INC modified, as in

BEGIN {
         push @INC, "/usr/local/lib/site_perl/5.6.0/i386-linux/";
};

before any use statements, but cyradm works differently -

This patch made it work for me:

--- cyradm~      Sat Sep 15 01:16:23 2001
+++ cyradm        Wed Sep 26 04:00:00 2001
@@ -40,8 +40,8 @@
  #
  #
  case "x$BASH_VERSION" in
-x) exec perl -MCyrus::IMAP::Shell -e shell -- ${1+"$@"} ;;
-*) exec perl -MCyrus::IMAP::Shell -e shell -- "$@" ;;
+x) exec perl -I/usr/local/lib/site_perl/5.6.0/i386-linux/ 
-MCyrus::IMAP::Shell -e shell -- ${1+"$@"} ;;
+*) exec perl -I/usr/local/lib/site_perl/5.6.0/i386-linux/ 
-MCyrus::IMAP::Shell -e shell -- "$@" ;;
  esac
  echo "$0: how did I get here?" >&2
  exit 1

At 09:17 AM 10/3/2001 -0300, Anderson wrote:
>Hi friends,
>I am running cyrus-imapd-2.0.16 along with postfix under Red Hat Linux 7.1.
>Who can help to decide this problem me ?
>
># cyradm -u cyrus localhost
>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.
>
>
>Anderson Ferreira
>Analista de Suporte
>
>APPI Informática LTDA.
>Av. Atáufo de Paiva nº 135/1410
>Leblon - Rio de janeiro
>Tel - 55 21 2529-5600
>Fax - 55 21 2511-0785

--
War is an ugly thing, but it is not the ugliest of things. The decayed and 
degraded state of moral and patriotic feeling which thinks that nothing is 
worth war is much worse. A man who has nothing for which he is willing to 
fight, nothing he cares about more than his own personal safety, is a 
miserable creature who has no chance of being free, unless made so by the 
exertions of better men than himself. -- John Stuart Mill
Nick Simicich - [EMAIL PROTECTED]

Reply via email to