LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2009, 02:02 AM   #1
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Rep: Reputation: 15
Cannot start amavis after patch update


I applied some general updates on a system. Some of them were perl modules. After applying them amavisd fails to start

Error:

Starting Mail Virus Scanner (amavisd): ERROR: MISSING REQUIRED BASIC MODULES:
Compress::Zlib
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 171.
[FAILED]
1. I checked for Zlib. It was present
2. I unistalled Zlib and reinstalled
3. I removed amavisd-new and reinstalled.

amavisd is still failing to start.

Can someone help. I need to know why applying the perl updates caused this problem. The system was working fine prior to applying the patch.

I have compared previous CPAN modules with current and they all seem present

I have tried to locate the location of the Zlib.pm

/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/Compress/Raw/Zlib.pm
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Compress/Raw/Zlib.pm
/usr/lib/perl5/vendor_perl/5.8.5/IO/Zlib.pm
/usr/lib/perl5/vendor_perl/5.8.5/Compress/Zlib.pm
/usr/lib/perl5/site_perl/5.8.5/Compress/Zlib.pm
/root/.cpan/build/Compress-Raw-Zlib-2.015/blib/lib/Compress/Raw/Zlib.pm
/root/.cpan/build/Compress-Raw-Zlib-2.015/lib/Compress/Raw/Zlib.pm
/root/.cpan/build/Compress-Zlib-2.015/blib/lib/Compress/Zlib.pm
/root/.cpan/build/Compress-Zlib-2.015/lib/Compress/Zlib.pm

#rpm -q perl-Compress-Zlib
perl-Compress-Zlib-2.015-1.el4.rf

#rpm -qf /usr/lib/perl5/vendor_perl/5.8.5/Compress/Zlib.pm
perl-Compress-Zlib-2.015-1.el4.rf

#rpm -qf /usr/lib/perl5/site_perl/5.8.5/Compress/Zlib.pm
file /usr/lib/perl5/site_perl/5.8.5/Compress/Zlib.pm is not owned by any package
THIS DOES NOT SEEM RIGHT??

#perl -e 'use Compress::Zlib;'

is only avaliable with the XS version at /usr/lib/perl5/site_perl/5.8.5/Compress/Zlib.pm line 9
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/Compress/Zlib.pm line 9.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


Line9 refers to use Scalar::Util qw(dualvar) which refers to Scalar-List-Utils-1.19. I dont have this and I never have?? Any suggestions

Regards

Last edited by i_nomad; 01-08-2009 at 03:47 AM.
 
Old 01-08-2009, 08:08 AM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
I'd recommend deleting all the cpan perl stuff that's associated with amavis then rpm -Uvh --force re-install the modules that were installed with the rpms that worked with amavisd.
 
Old 01-08-2009, 08:34 AM   #3
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Do you know what the above error messages are indicating? Also what is the difference between vendor_perl and site_perl, should both be present??

Regards

Last edited by i_nomad; 01-08-2009 at 08:36 AM.
 
Old 01-08-2009, 09:26 AM   #4
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
I would say the vendor perl is the rpm and the site perl is the cpan module you installed. Anything that's not able to verify with rpm -qf /path/file is not an rpm and should be removed for amavisd to work if it worked prior to installing cpan stuff.
 
Old 01-08-2009, 09:53 AM   #5
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Could you let me know what is the easiest way to find what perl modules are associated with amavisd

Regards
 
Old 01-09-2009, 03:24 AM   #6
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Can anyone shed more light on this please to help me understand the direction I should take.

Regards
 
Old 01-09-2009, 04:31 AM   #7
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
I have managed to sort this out!

The problem was with the yum update

Initially I must have installed perl-Compress-Zlib-2.015-1.el4.rf and 1.42-1.el4.rf but along the way to resolve this I removed 1.42-1.el4.rf and left perl-Compress-Zlib-2.015-1.el4.rf. The 2.015-1.el4.rf is noarch version (obviously no good for my system)

1. Unistalled perl-Compress-Zlib
rpm -e --nodeps perl-Compress-Zlib-2.015-1.el4.rf as there were dependencies

2. yum install perl-Compress-Zlib
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package perl-Compress-Zlib.noarch 0:2.015-1.el4.rf set to be updated
---> Package perl-Compress-Zlib.x86_64 0:1.42-1.el4.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
perl-Compress-Zlib noarch 2.015-1.el4.rf rpmforge 35 k
perl-Compress-Zlib x86_64 1.42-1.el4.rf rpmforge 163 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 198 k
Is this ok [y/N]: n
Exiting on user Command
Complete!

3. Aha...See what is happening

# rpm -qa | grep perl-Compress-Zlib
perl-Compress-Zlib-2.015-1.el4.rf
perl-Compress-Zlib-1.42-1.el4.rf

# rpm -e --nodeps perl-Compress-Zlib-2.015-1.el4.rf

4.service start amavis

5.As I had reinstalled amavisd I restored to a configured amavisd.conf

6.Clam would not start due to permissions on log file. Changed permssions.

7. Tested mail scan with virus.

Last edited by i_nomad; 01-09-2009 at 06:04 AM.
 
Old 01-15-2012, 12:31 PM   #8
OS Jockey
LQ Newbie
 
Registered: Apr 2008
Location: San Jose, CA.
Distribution: CentOS
Posts: 10

Rep: Reputation: 1
I know this is an old thread, but this problem continues to occur with amavisd/Compress-Zlib.

I have found that updating Scalar-List-Utils from cpan to be a fast and easy fix for this problem. As I have just fixed this problem once again on my mail server and the fact that this LQ forum comes up in the top two hits for this problem when I search, I figured I would post an updated transcript on how to fix this quickly.


The Problem:
------------

[root@localhost ~]# service amavisd start
Starting Mail Virus Scanner (amavisd): fetch_modules: error loading required module Compress/Zlib.pm:
dualvar is only available with the XS version of Scalar::Util at /usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm line 8
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm line 8.
Compilation failed in require at /usr/sbin/amavisd line 197.
ERROR: MISSING REQUIRED BASIC MODULES:
Compress::Zlib
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.
[FAILED]
[root@localhost ~]# rpm -qa | grep Compress
perl-IO-Compress-2.037-1.el5.rfx
perl-Compress-Raw-Zlib-2.037-1.el5.rf
perl-Compress-Raw-Bzip2-2.037-1.el5.rf



The Solution:
-------------

[root@localhost ~]# wget http://search.cpan.org/CPAN/authors/...1.23_03.tar.gz
--2012-01-15 10:06:00-- http://search.cpan.org/CPAN/authors/...1.23_03.tar.gz
Resolving search.cpan.org... ll199.15.176.161
Connecting to search.cpan.org|199.15.176.161|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://httpupdate14.cpanel.net/CPAN/...1.23_03.tar.gz [following]
--2012-01-15 10:06:05-- http://httpupdate14.cpanel.net/CPAN/...1.23_03.tar.gz
Resolving httpupdate14.cpanel.net...74.200.65.162
Connecting to httpupdate14.cpanel.net|74.200.65.162|:80...connected.
HTTP request sent, awaiting response... 200 OK
Length: 69070 (67K) [application/x-gzip]
Saving to: `Scalar-List-Utils-1.23_03.tar.gz'

100%[==================================================================================================== ===========================================================>] 69,070 137K/s in 0.5s

2012-01-15 10:06:06 (137 KB/s) - `Scalar-List-Utils-1.23_03.tar.gz' saved [69070/69070]

[root@localhost ~]# cd src

[root@localhost src]# tar zxvf ../Scalar-List-Utils-1.23_03.tar.gz
Scalar-List-Utils-1.23_03/
Scalar-List-Utils-1.23_03/Changes
Scalar-List-Utils-1.23_03/lib/
Scalar-List-Utils-1.23_03/ListUtil.xs
Scalar-List-Utils-1.23_03/Makefile.PL
Scalar-List-Utils-1.23_03/MANIFEST
Scalar-List-Utils-1.23_03/META.yml
Scalar-List-Utils-1.23_03/multicall.h
Scalar-List-Utils-1.23_03/ppport.h
Scalar-List-Utils-1.23_03/README
Scalar-List-Utils-1.23_03/SIGNATURE
Scalar-List-Utils-1.23_03/t/
Scalar-List-Utils-1.23_03/t/00version.t
Scalar-List-Utils-1.23_03/t/blessed.t
Scalar-List-Utils-1.23_03/t/dualvar.t
Scalar-List-Utils-1.23_03/t/first.t
Scalar-List-Utils-1.23_03/t/getmagic-once.t
Scalar-List-Utils-1.23_03/t/isvstring.t
Scalar-List-Utils-1.23_03/t/lln.t
Scalar-List-Utils-1.23_03/t/max.t
Scalar-List-Utils-1.23_03/t/maxstr.t
Scalar-List-Utils-1.23_03/t/min.t
Scalar-List-Utils-1.23_03/t/minstr.t
Scalar-List-Utils-1.23_03/t/openhan.t
Scalar-List-Utils-1.23_03/t/proto.t
Scalar-List-Utils-1.23_03/t/readonly.t
Scalar-List-Utils-1.23_03/t/reduce.t
Scalar-List-Utils-1.23_03/t/refaddr.t
Scalar-List-Utils-1.23_03/t/reftype.t
Scalar-List-Utils-1.23_03/t/shuffle.t
Scalar-List-Utils-1.23_03/t/stack-corruption.t
Scalar-List-Utils-1.23_03/t/sum.t
Scalar-List-Utils-1.23_03/t/tainted.t
Scalar-List-Utils-1.23_03/t/weak.t
Scalar-List-Utils-1.23_03/lib/List/
Scalar-List-Utils-1.23_03/lib/Scalar/
Scalar-List-Utils-1.23_03/lib/Scalar/Util.pm
Scalar-List-Utils-1.23_03/lib/List/Util/
Scalar-List-Utils-1.23_03/lib/List/Util.pm
Scalar-List-Utils-1.23_03/lib/List/Util/XS.pm

[root@localhost src]# cd Scalar-List-Utils-1.23_03/

[root@localhost Scalar-List-Utils-1.23_03]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for List::Util

[root@localhost Scalar-List-Utils-1.23_03]# make test install
cp lib/List/Util/XS.pm blib/lib/List/Util/XS.pm
cp lib/List/Util.pm blib/lib/List/Util.pm
cp lib/Scalar/Util.pm blib/lib/Scalar/Util.pm
/usr/bin/perl /usr/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap ListUtil.xs > ListUtil.xsc && mv ListUtil.xsc ListUtil.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.23_03\" -DXS_VERSION=\"1.23_03\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DPERL_EXT ListUtil.c
ListUtil.c: In function ‘XS_List__Util_min’:
ListUtil.xs:71: warning: ‘retval’ may be used uninitialized in this function
Running Mkbootstrap for List::Util ()
chmod 644 Util.bs
rm -f blib/arch/auto/List/Util/Util.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic ListUtil.o -o blib/arch/auto/List/Util/Util.so \
\

chmod 755 blib/arch/auto/List/Util/Util.so
cp Util.bs blib/arch/auto/List/Util/Util.bs
chmod 644 blib/arch/auto/List/Util/Util.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00version...........ok
t/blessed.............ok
t/dualvar.............ok
t/first...............ok
2/24 skipped: Poor man's MULTICALL can't cope
t/getmagic-once.......ok
t/isvstring...........ok
t/lln.................ok
t/max.................ok
t/maxstr..............ok
t/min.................ok
t/minstr..............ok
t/openhan.............ok
t/proto...............ok
t/readonly............ok
t/reduce..............ok
2/31 skipped: Poor man's MULTICALL can't cope
t/refaddr.............ok
t/reftype.............ok
t/shuffle.............ok
t/stack-corruption....ok
t/sum.................ok
t/tainted.............ok
t/weak................ok
All tests successful, 4 subtests skipped.
Files=22, Tests=295, 0 wallclock secs ( 0.38 cusr + 0.16 csys = 0.54 CPU)
Manifying blib/man3/List::Util::XS.3pm
Manifying blib/man3/List::Util.3pm
Manifying blib/man3/Scalar::Util.3pm
Installing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/List/Util/Util.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/List/Util.pm
Installing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/List/Util/XS.pm
Installing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Scalar/Util.pm
Installing /usr/share/man/man3/List::Util.3pm
Installing /usr/share/man/man3/Scalar::Util.3pm
Installing /usr/share/man/man3/List::Util::XS.3pm
Writing /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/List/Util/.packlist
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod

[root@localhost Scalar-List-Utils-1.23_03]# service amavisd start
Starting Mail Virus Scanner (amavisd): [ OK ]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Patch Update Rahul Kolan Linux - Hardware 2 08-27-2008 02:59 PM
FC5 cannot start amavis-mitler leiw Linux - General 0 05-20-2007 07:50 PM
No upgrade after patch update? mokele Slackware 10 11-01-2005 04:54 PM
KDE wont start after 1st patch update benlm54 SUSE / openSUSE 2 07-16-2005 11:32 PM
update and patch how to salahuddin_66 Slackware 2 06-01-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration