Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mime_decode-1 FAILED: Can't locate object method "binmode" via package "IO::File"

261 views
Skip to first unread message

olivier....@gmail.com

unread,
Nov 26, 2007, 10:41:14 AM11/26/07
to
Hi all,

I wanted to add p0f-analyzer.pl to our anti-UBE conf, but when I
restarted amavisd, I got several troubles.
When I look at the logs, I can see that perl module have been updated
via an up2date from yum/DAG (in the crontab) and that amavis have not
been restarted since many Perl Modules updates....

So I'm not sure that the troubles are from p0f or from Perl...

First error message solved was :
TROUBLE in check_mail: mime_decode-1 FAILED: Can't locate object
method "seek" via package "File::Temp" at /usr/lib/perl5/vendor_perl/
5.8.5/MIME/Parser.pm line 816, <GEN5> line 143.

An update of "File-Temp" module solved it

Second error message, still available is :
TROUBLE in check_mail: mime_decode-1 FAILED: Can't locate object
method "binmode" via package "IO::File" at /usr/lib/perl5/vendor_perl/
5.8.5/MIME/Body.pm line 437

I googled, asked around me,... so please thanks by advance to point me
in the good direction.


Config is :
- Linux RedHat EL4 : 2.6.9-55.0.9.ELhugemem
- amavisd-new-2.5.2 (20070627)
- SA version: 3.2.3, 3.002003
- postfix-2.4.0-3
- clamav-0.91.2-1
- perl-5.8.5-36

Amavis uses Perl modules :
Perl version 5.008005
Net::Server: Group Not Defined. Defaulting to EGID '101 101'
Net::Server: User Not Defined. Defaulting to EUID '101'
Module Amavis::Conf 2.091
Module Archive::Zip 1.23
Module BerkeleyDB 0.32
Module Compress::Zlib 2.008
Module Convert::TNEF 0.17
Module Convert::UUlib 1.051
Module DBI 1.601
Module DB_File 1.809
Module Digest::MD5 2.33
Module Digest::SHA1 2.07
Module MIME::Entity 5.425
Module MIME::Parser 5.425
Module MIME::Tools 5.425
Module Mail::Header 1.77
Module Mail::Internet 1.77
Module Mail::SpamAssassin 3.002003
Module Net::DNS 0.61
Module Net::Server 0.97
Module Time::HiRes 1.9708
Module URI 1.30
Module Unix::Syslog 1.0

mewyn...@gmail.com

unread,
Jan 2, 2008, 9:57:46 PM1/2/08
to

This hit me too after a recent update. What I did was reinstalled all
the MIME::* via CPAN and that did the trick.

gone.j...@gmail.com

unread,
Jan 8, 2008, 12:33:52 AM1/8/08
to

Could you give a little more detail please? I've got the same problem
after a recent yum update replaced my perl.MailTools, perl-MIME-tools
and perl-File-Temp packages.

gone.j...@gmail.com

unread,
Jan 8, 2008, 1:40:37 AM1/8/08
to

I got it...

To run CPAN -- From the root prompt on your server, invoke the CPAN
shell:

# perl -MCPAN -e shell

Once the Perl interpreter has loaded (and been configured), you can
install modules by issuing the command install MODULENAME.

The first thing you should do is upgrade your CPAN:

cpan> install Bundle::CPAN

Once it's done, type:

cpan> reload cpan

I had to exit and re-run CPAN, it wasn't happy with an in-place
reload.

Now, you want to reload the modules that were failing. In your case,
it was File::Temp and IO::File. So enter the following command to
retrieve the required modules:

cpan> install File::Temp
...
cpan> install IO::File

That should fix your problem.

gone.j...@gmail.com

unread,
Jan 8, 2008, 1:46:45 AM1/8/08
to
On Jan 7, 10:33 pm, gone.john...@gmail.com wrote:

I got it...

0 new messages