LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-02-2008, 09:41 AM   #1
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 15
Amavis Help


Hi guys this is my first post so excuse me if I miss and info out.

I'm having an issue installing amavis when I try to start it I get this message:

(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder.pm line 204, near "usage "unsupported encoding '$enc': using 'binary'""
(Do you need to predeclare usage?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/Base64.pm line 80, near "debug "in = $in; out = $out""
(Do you need to predeclare debug?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/NBit.pm line 142, near "whine "saw 8-bit data while encoding 7bit""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/NBit.pm line 147, near "whine "saw long line while encoding 7bit/8bit""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/UU.pm line 93, near "whine "file incomplete, no end found\n""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/Gzip64.pm line 97, near "whine "Encoding ""
(Do you need to predeclare whine?)
ERROR: MISSING REQUIRED BASIC MODULES:
MIME::Head
MIME::Body
MIME::Entity
MIME::Parser
MIME:ecoder::Base64
MIME:ecoder::NBit
MIME:ecoder::UU
MIME:ecoder::Gzip64
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 157.
[root@localhost MIME]# amavisd debug
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Body.pm line 450, near "whine "couldn't unlink ""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder.pm line 204, near "usage "unsupported encoding '$enc': using 'binary'""
(Do you need to predeclare usage?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/Base64.pm line 80, near "debug "in = $in; out = $out""
(Do you need to predeclare debug?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/NBit.pm line 142, near "whine "saw 8-bit data while encoding 7bit""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/NBit.pm line 147, near "whine "saw long line while encoding 7bit/8bit""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/UU.pm line 93, near "whine "file incomplete, no end found\n""
(Do you need to predeclare whine?)
String found where operator expected at /usr/lib/perl5/site_perl/5.8.8/MIME/Decoder/Gzip64.pm line 97, near "whine "Encoding ""
(Do you need to predeclare whine?)
ERROR: MISSING REQUIRED BASIC MODULES:
MIME::Head
MIME::Body
MIME::Entity
MIME::Parser
MIME:ecoder::Base64
MIME:ecoder::NBit
MIME:ecoder::UU
MIME:ecoder::Gzip64
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd line 157.

So its saying there are errors in the PERL files and then saying it cant find them?

I've looked into the my perl5 lib and its all there?

Any help is greatly appreciated.

Thanks

Glyn
 
Old 10-03-2008, 09:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by glyn3332 View Post
Hi guys this is my first post so excuse me if I miss and info out.

I'm having an issue installing amavis when I try to start it I get this message:


ERROR: MISSING REQUIRED BASIC MODULES:
MIME::Head
MIME::Body
MIME::Entity
MIME::Parser
MIME:ecoder::Base64
MIME:ecoder::NBit
MIME:ecoder::UU
MIME:ecoder::Gzip64

So its saying there are errors in the PERL files and then saying it cant find them?
You're missing these Perl modules. Download them from CPAN and install them.
 
Old 10-08-2008, 04:59 AM   #3
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I checked that first I'm primarily a PHP programmer so I knew to cover that alley so I adjusted the top of the /usr/local/sbin/amavisd from #!/usr/bin/perl -T to #!/usr/bin/perl -T -I/usr/lib/perl5/site_perl/5.8.8/MIME/ to make sure the packages where included?

Did I do this properly or did I stuff it up .

Again thanks for the reply.
 
Old 10-08-2008, 06:14 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What distro do you use?
 
Old 10-08-2008, 07:21 AM   #5
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
CentOS 5 mate.
 
Old 10-08-2008, 08:09 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by glyn3332 View Post
Thanks for the reply.

I checked that first I'm primarily a PHP programmer so I knew to cover that alley so I adjusted the top of the /usr/local/sbin/amavisd from #!/usr/bin/perl -T to #!/usr/bin/perl -T -I/usr/lib/perl5/site_perl/5.8.8/MIME/ to make sure the packages where included?

Did I do this properly or did I stuff it up .

Again thanks for the reply.
No worries, but if you don't have the modules installed, it won't work. Go to http://search.cpan.org/, and enter the module name. You'll see it come up on the list. Download the file, and decompress it into a directory. They all usually install the same way: "perl Makefile.PL", then "make", "make test", and "make install". If you have any module dependencies, the Makefile.PL will tell you what they are. Install them first, obviously.

Shouldn't take long at all.
 
Old 10-08-2008, 09:32 AM   #7
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Smile

TB0ne I LOVE YOU!!!!!!!!!

Installing fro the address you sent got the whole thing up and running in no time at all like you said . he only thing I don't understand is I used cpan in the shell before hand to install the packages and all dependencies as its just like using PEAR. If there is a reason this didn't work could someone answer this question as it might just help another person in distress .

Id like to thank all of you who came to my aid I will endeavour to help other users as you helped me
 
Old 10-08-2008, 10:18 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by glyn3332 View Post
TB0ne I LOVE YOU!!!!!!!!!

Installing fro the address you sent got the whole thing up and running in no time at all like you said . he only thing I don't understand is I used cpan in the shell before hand to install the packages and all dependencies as its just like using PEAR. If there is a reason this didn't work could someone answer this question as it might just help another person in distress .

Id like to thank all of you who came to my aid I will endeavour to help other users as you helped me
Glad that worked for you, glyn3332. Ciao.
 
Old 10-08-2008, 11:06 AM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Perl will pick up that directory by default, so there is no need to modify amavisd to do this.

The problem is with your MIME:Tools install. Since you've used CPAN, you likely have two installations of these modules - one in vendor_perl and one in site_perl (CPAN's). Mixing and matching CPAN w/distributions can be a problem, especially when there are other dependencies.

Is this a similar problem in your case? :

http://groups.google.com/group/maili...5de53370deece#
 
Old 10-08-2008, 01:22 PM   #10
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
It looks like it. I did have two versions of it when I looked originally but I'm that much of a noob with PERL that I didn't know what I was doing even 20%.

Thanks again I'll keep that in mind if I run into or see someone else with the same issue.
 
Old 10-08-2008, 04:28 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You'll find amavisd and its dependencies in the rpmforge repository for next time. I've had all sorts of problems with cpan installations some time down the track.
 
  


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
amavis on slack 12.1 keopp Slackware 7 09-19-2008 03:46 PM
question about amavis combilli Linux - Software 2 10-27-2006 06:49 AM
amavis not using new SA rules paintcheck200 Linux - Networking 0 08-15-2005 02:17 PM
amavis problem egyptian Linux - Networking 0 12-29-2004 04:10 AM
amavis with postfix egyptian Linux - Security 1 10-14-2004 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:01 PM.

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