Perl upgrade broke cyradm

Doug Koobs dkoobs at FCSservices.com
Mon Mar 7 18:11:31 EST 2005


I recently upgraded my installation of Perl from 5.8.0 (in
/usr/lib/perl5) to 5.8.6 (in /usr/local/lib/perl5) using CPAN. I didn't
catch the difference in location when I installed... Now, when I try to
run the command "cyradm --user cyrus --auth login localhost" I got the
error:

******************************************************
Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
******************************************************

I did a locate Shell.pm:
/usr/lib/perl5/5.8.0/Shell.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.
pm
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/DBI/Shell.pm
/usr/local/lib/perl5/5.8.6/Shell.pm

Then I made the directory Cyrus in /usr/local/lib/perl5/5.8.6, and
copied (with cp -R)
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/ into it,
which contains IMAP.pm, IMAP/Shell.pm, and IMAP/Admin.pm. Now when I run
cyradm, I get:

*********************************************************
Can't locate loadable object for module Cyrus::IMAP in @INC (@INC
contains: /usr/local/lib/perl5/5.8.6/i686-linux
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .)
at /usr/local/lib/perl5/5.8.6/Cyrus/IMAP/Admin.pm line 44
Compilation failed in require at
/usr/local/lib/perl5/5.8.6/Cyrus/IMAP/Admin.pm line 44.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/5.8.6/Cyrus/IMAP/Admin.pm line 44.
Compilation failed in require at
/usr/local/lib/perl5/5.8.6/Cyrus/IMAP/Shell.pm line 60.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/5.8.6/Cyrus/IMAP/Shell.pm line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.
*********************************************************

Line 44 in Admin.pm says "use Cyrus::IMAP;" So, I'm thinking I need to
rebuild and re-install the Cyrus::IMAP module. It isn't in CPAN... Since
I had installed Cyrus using Simon Matter's 2.2.12-1 source rpm, so I'm
thinking this module must be part of the perl-Cyrus-2.2.12-1.i386.rpm
package. So, I try to rebuild from his source rpm with the command
"rpmbuild --rebuild cyrus-imapd-2.2.12-1.src.rpm" and after it builds
for a while, I get the following error:

***********************************************************
+ find
/var/tmp/cyrus-imapd-2.2.12-root/usr/local/lib/perl5/site_perl/5.8.6/i68
6-linux/Cyrus
/var/tmp/cyrus-imapd-2.2.12-root/usr/local/lib/perl5/site_perl/5.8.6/i68
6-linux/auto/Cyrus -type f -print
find:
/var/tmp/cyrus-imapd-2.2.12-root/usr/local/lib/perl5/site_perl/5.8.6/i68
6-linux/Cyrus: No such file or directory
find:
/var/tmp/cyrus-imapd-2.2.12-root/usr/local/lib/perl5/site_perl/5.8.6/i68
6-linux/auto/Cyrus: No such file or directory
+ /bin/grep -v perllocal.pod
+ /bin/grep -v '\.packlist'
+ /bin/sed 's@^/var/tmp/cyrus-imapd-2.2.12-root@@g'
error: Bad exit status from /var/tmp/rpm-tmp.82056 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.82056 (%install)
************************************************************

Wow, sorry for the long email, I hope the detail is actually useful...
What can I do to correct the situation?


Doug



Confidential: This electronic message and all contents contain information from Financial Credit Services which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender and destroy the original message and all copies.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list