At 10:22 PM 8/3/2005, John Rudd wrote:
When I install SpamAssassin on OS X, I notice a few oddities:

1) /usr/bin/spamassassin says its prefix is /

2) the rules are in /share/spamassassin instead of /usr/share or /usr/local/share

Well, those are at least consistent with each other. If prefix is /, then rules should be in /share/spamassassin.


3) the new modules are in /Library/Perl instead of /System/Library/Perl (OS X's equiv. of /usr/libexec/perl5 or similar)


None of these are good. I don't know if this is due to perl being broken, or spam assassin being broken, but the results just aren't right.

/usr/bin/spamassassin is able to find its stuff fine, and run, but daemons that call spam assassin libraries directly need to be specifically told where to find things, because they're not in expected locations.

Can someone look into fixing the installer so that it picks a better place to put things?

Or have someone tell OS X where to put things, that's all a matter of perspective.

Really, there's nothing wrong with the SA installer. It sounds like your MakeMaker isn't up-to-speed with where OSX puts things. In particular, locating the proper perl library directory is entirely a function of MakeMaker, not the SA install scripts.

MakeMaker 6.06_04 claims to have fixed one bug related to OS X's choice of where to put libraries. If you've got an older MakeMaker.. Well, there's your problem.


In the interim, you could fix the Makefile and do a re-install:

        1) whack the existing installed SA files
        2) edit PREFIX and PERL_LIB directly in the Makefile.
        3) re-run "make" and "make install"
(note: untested, you *might* have to do a "make clean" before make, but I doubt it)


Reply via email to