Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

amavisd - adding path to perl @INC for "Can't locate Convert/BinHex.pm"

hello!

When I do "amavisd -V" on the command line I get the error below.

I have installed Convert/BinHex.pm using CPAN, but it is NOT located in one of the paths that perl is searching in. Cpan has installed the module in:

/opt/local/lib/perl5/site_perl/5.8.9

How do add that path so that @INC looks in the right place????

regan




pukeko:~ administrator$ amavisd -V
fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:
Can't locate Convert/BinHex.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1) at /System/Library/Perl/Extras/5.8.6/MIME/Decoder/BinHex.pm line 44.
BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.8.6/MIME/Decoder/BinHex.pm line 44.
Compilation failed in require at /usr/bin/amavisd line 197.
amavisd-new-2.6.4 (20090625)

Dual G5 Xserve, Mac OS X (10.4.11)

Posted on Dec 15, 2009 9:21 PM

Reply
20 replies

Feb 10, 2010 7:46 AM in response to reganyelcich

I'm having this same problem after trying to install amaviasd-new as per instructions at http://downloads.topicdesk.com/docs/Updatingamavisd_new_on_OS_XServer.pdf

My experience is VERY limited and I'm basically just following the instructions as closely as I can. But after doing everything in the tutorial and issuing /usr/bin/amavisd -V I'm getting:

+mail:~ root# /usr/bin/amavisd -V+
+fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:+
+Can't locate Convert/BinHex.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1) at /System/Library/Perl/Extras/5.8.6/MIME/Decoder/BinHex.pm line 44.+
+BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.8.6/MIME/Decoder/BinHex.pm line 44.+
+Compilation failed in require at /usr/bin/amavisd line 197.+
+amavisd-new-2.6.4 (20090625)+

I'm willing to do what you stated above and uninstall the newer version of perl and then reinstall Convert::BinHex, but I'm going to need some help with that. If anyone can help me out I'd really appreciate it. Users here are getting pretty fed up with having to sift through dozens of junkmails on a daily basis.

Thanks in advance!

Feb 10, 2010 8:46 AM in response to pterobyte

End of results after the force install:

+Checking if your kit is complete...+
+Looks good+
+Writing Makefile for Convert::BinHex+
+Can't exec "/var/amavis/make": No such file or directory at /System/Library/Perl/5.8.6/CPAN.pm line 4566.+
+/var/amavis/make -- NOT OK+
+Running make test+
+Can't test without successful make+
+Running make install+
+make had returned bad status, install seems impossible+

Feb 10, 2010 9:50 AM in response to Garner

Rebooted, followed the tutorial and everything was working fine until I got to:

"Now you are ready to install/update the module(s). Some modules
are already present on OS X Server, but seriously outdated.
At the CPAN prompt (cpan >) issue:
install Archive::Zip"

After issuing 'install Archive::Zip' I get the following and the end of the process:

+Checking if your kit is complete...+
+Looks good+
+Warning: prerequisite Compress::Raw::Zlib 2.017 not found.+
+Writing Makefile for Archive::Zip+
+Can't exec "/var/amavis/make": No such file or directory at /System/Library/Perl/5.8.6/CPAN.pm line 4566.+
+/var/amavis/make -- NOT OK+
+Running make test+
+Can't test without successful make+
+Running make install+
+make had returned bad status, install seems impossible+

/sigh Maybe I can try to get my boss to send me to some classes to learn this stuff. :P

Anyhow, I imagine there's no use in continuing until I can figure out why the install "seems impossible"...

Feb 10, 2010 10:45 AM in response to pterobyte

Not that I know of. I just installed it with the defaults. Do you know if I can fix it, or should I try to install XCode again and double check the paths? Or can I do 'o conf init' again and change a path that way? If so, which path do I need to change? The /var/amavis/make path?

Any ideas you might have (anyone else chime in too if you have ideas) is greatly appreciated.

amavisd - adding path to perl @INC for "Can't locate Convert/BinHex.pm"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.