LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 10-02-2008, 10:41 AM   #1
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21
Thanked: 0
Amavis Help


[Log in to get rid of this advertisement]
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
glyn3332 is offline     Reply With Quote
Old 10-03-2008, 10:49 AM   #2
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 3,972
Thanked: 137
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.
TB0ne is offline     Reply With Quote
Old 10-08-2008, 05:59 AM   #3
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21
Thanked: 0

Original Poster
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.
glyn3332 is offline     Reply With Quote
Old 10-08-2008, 07:14 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
What distro do you use?
billymayday is offline     Reply With Quote
Old 10-08-2008, 08:21 AM   #5
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21
Thanked: 0

Original Poster
CentOS 5 mate.
glyn3332 is offline     Reply With Quote
Old 10-08-2008, 09:09 AM   #6
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 3,972
Thanked: 137
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.
TB0ne is offline     Reply With Quote
Old 10-08-2008, 10:32 AM   #7
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21
Thanked: 0

Original Poster
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
glyn3332 is offline     Reply With Quote
Old 10-08-2008, 11:18 AM   #8
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 3,972
Thanked: 137
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.
TB0ne is offline     Reply With Quote
Old 10-08-2008, 12:06 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,511
Thanked: 4
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#
Mr. C. is offline     Reply With Quote
Old 10-08-2008, 02:22 PM   #10
glyn3332
LQ Newbie
 
Registered: Oct 2008
Posts: 21
Thanked: 0

Original Poster
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.
glyn3332 is offline     Reply With Quote
Old 10-08-2008, 05:28 PM   #11
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
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.
billymayday is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 04:46 PM
question about amavis combilli Linux - Software 2 10-27-2006 07:49 AM
amavis not using new SA rules paintcheck200 Linux - Networking 0 08-15-2005 03:17 PM
amavis problem egyptian Linux - Networking 0 12-29-2004 05:10 AM
amavis with postfix egyptian Linux - Security 1 10-14-2004 11:08 AM


All times are GMT -5. The time now is 10:25 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration