You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by sp...@incubator.apache.org on 2004/04/06 22:46:00 UTC
[SpamAssassin Wiki] Updated: RazorCantLocateNew
Date: 2004-04-06T13:45:58
Editor: 12.148.252.66 <>
Wiki: SpamAssassin Wiki
Page: RazorCantLocateNew
URL: http://wiki.apache.org/spamassassin/RazorCantLocateNew
rework the page, which was pretty much a cut/paste of my original mail about it.
Change Log:
------------------------------------------------------------------------------
@@ -4,23 +4,22 @@
You can see information in bug 2314: http://bugzilla.spamassassin.org/show_bug.cgi?id=2314 which should help you to clean up your installation.
-But in short:
+But here's an example that shows the problem:
-What I found on the one box I looked at which exhibited this behavior is that the user had two versions of Digest::SHA1 "installed". 2.04 which was fully installed, and 2.01 which only had the .pm (none of the XS libraries). The "use lib" in SA caused the 2.01 pm to be loaded, but the only libraries it could find was 2.04, which caused DynaLoader to barf.
-
-What I did was to run the following:
+The machine which had the issue had two versions of Digest::SHA1 "installed". 2.04 which was fully installed, and 2.01 which only had the .pm module files (none of the related XS libraries). The "use lib" in SA caused the 2.01 pm module to be loaded, but the only XS libraries perl could find was 2.04, which caused DynaLoader to throw errors.
+To see the problem, you can run this command:
{{{
$ perl -e 'use lib "/usr/lib/perl5/site_perl/5.6.0"; use Razor2::Client::Agent;'
}}}
-changing that path as appropriate to whatever SA's install does.
+changing the path as appropriate to whatever SA's install is set to (look in the "spamassassin" script).
-What I ended up seeing was:
+The error that came out was:
{{{
Digest::SHA1 object version 2.04 does not match bootstrap parameter 2.01 at /usr/lib/perl5/5.6.0/ppc-linux/DynaLoader.pm line 219.
Compilation failed in require at /usr/lib/perl5/site_perl/5.6.0/ppc-linux/Razor2/String.pm line 4.
}}}
-I then looked around the directories and found the different versions as mentioned above.
+Looking around the directories then showed the PM/XS issues as described above. The solution was to remove all Digest::SHA1 related files, reinstall 2.04, then try the above perl commandline again, which now worked fine.