Mailing List Archive

[Spamassassin Wiki] Update of "InstallingOnWindows" by BretMiller
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by BretMiller:
http://wiki.apache.org/spamassassin/InstallingOnWindows

The comment on the change is:
Updated for SA 3.1.0

------------------------------------------------------------------------------

http://www.openhandhome.com/howtosa.html provides more detailed step by step information. The below info is largely a digest of said info. Please be advised that though this site provides more detailed step-by-step instructions, in some environments (like CommuniGate Pro with CGPSA), using the older Active``Perl and Net::DNS modules causes a number of problems. In other environments, his instructions may actually perform more reliably.

- This installation procedure is for installing SpamAssassin in native Windows (not Cygwin) using Active``Perl 5.8.6.811 or later 5.8.x.
+ This installation procedure is for installing SpamAssassin in native Windows (not Cygwin) using Active``Perl 5.8.7.813 or later 5.8.x.

1. Install or upgrade Perl if required:
* If upgrading, make note of any modules you need to reinstall, uninstall Active``Perl and delete the /perl folder tree.
@@ -33, +33 @@

* c:\perl\site\lib\mail\spamassassin.pm and spamassassin folder
* c:\perl\etc\mail\spamassassin or c:\perl\site\etc\mail\spamassassin
* c:\perl\html\site\lib\mail\spamassassin or c:\spamdocs or whereever you put the docs last time
- * c:\perl\bin\spamassassin.* and c:\perl\bin\sa-learn.*
+ * c:\perl\bin\spamassassin.* and c:\perl\bin\sa-learn.* and c:\perl\bin\sa-update.*
7. The following system environment variables may have to be set:
* RES_NAMESERVERS=<your-dns-server-ip-address>
If you do not set this variable, SpamAssassin should use the first DNS server in your network configuration. That is useful when, for example, you move your computer between different networks and have DNS automatically assigned. If you experience problems with domain name resolution, try setting this variable to force SpamAssassin to use the specified nameserver.
@@ -41, +41 @@

This used to be required for SpamAssassin to work with perl 5.8.x. It should no longer be necessary, but there is no harm in having it set. If you have trouble getting SpamAssassin to run, try setting this.
8. Install SpamAssassin:
* extract it to the c:\ folder with use folder names
- * in a command prompt: cd\mail-spamassassin-3.0.2
+ * in a command prompt: cd\mail-spamassassin-3.1.0
* perl makefile.pl
- Answer the questions as they are asked.
+ Answer the questions as they are asked. Remember you can NOT build spamc without a C compiler installed and its environment set up.
* nmake
- * nmake test
+ * nmake test (this is optional)
* nmake install
9. Generate the documentation. Make a batch file out of the following code and run it from the command prompt you started in the last step. This creates HTML documentation in the same directory structure that other perl documentation is already in, /perl/html/site/lib/mail/spamassassin. {{{
REM Run from the top of the SpamAssassin install directory
@@ -57, +57 @@

echo y|del \perl\html\site\lib\mail\spamassassin\plugins\*.*
call pod2html spamassassin.raw --outfile \perl\html\site\lib\mail\spamassassin\spamassassin.html
call pod2html sa-learn. --outfile \perl\html\site\lib\mail\spamassassin\sa-learn.html
+ call pod2html lib\mail\spamassassin\ArchiveIterator.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\ArchiveIterator.html
call pod2html lib\mail\spamassassin\AutoWhiteList.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\AutoWhiteList.html
call pod2html lib\mail\spamassassin\Bayes.pm --outfile \perl\html\site\lib\mail\spamassassin\Bayes.html
call pod2html lib\mail\spamassassin\Message\Metadata.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\MessageMetaData.html
call pod2html lib\mail\spamassassin\Message\Node.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\MessageNode.html
call pod2html lib\mail\spamassassin\BayesStore\SQL.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\BayesStoreSQL.html
call pod2html lib\mail\spamassassin\BayesStore.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\BayesStore.html
+ call pod2html lib\mail\spamassassin\Client.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\Client.html
call pod2html lib\mail\spamassassin\conf.pm --outfile \perl\html\site\lib\mail\spamassassin\conf.html
call pod2html lib\mail\spamassassin\Conf\SQL.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\confSQL.html
call pod2html lib\mail\spamassassin\Conf\LDAP.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\confLDAP.html
call pod2html lib\mail\spamassassin\Conf\Parser.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\confParser.html
+ call pod2html lib\mail\spamassassin\DnsResolver.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\DnsResolver.html
+ call pod2html lib\mail\spamassassin\Logger.pm --outfile \perl\html\site\lib\mail\spamassassin\Logger.html
call pod2html lib\mail\spamassassin\permsgstatus.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\permsgstatus.html
call pod2html lib\mail\spamassassin\message.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\message.html --quiet
call pod2html lib\mail\spamassassin\permsglearner.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\permsglearner.html
call pod2html lib\mail\spamassassin\plugin.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\PluginsArchitecture.html
+ call pod2html lib\mail\spamassassin\PluginHandler.pm --outfile \perl\html\site\lib\mail\spamassassin\PluginHandler.html
call pod2html lib\mail\spamassassin\persistentaddrlist.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\Persistentaddrlist.html
call pod2html lib\mail\spamassassin\SQLBasedAddrList.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\SQLBasedAddrList.html
call pod2html lib\mail\spamassassin.pm --outfile \perl\html\site\lib\mail\spamassassin\advanced\spamassassinclass.html
+ call pod2html lib\mail\spamassassin\Util.pl --outfile \perl\html\site\lib\mail\spamassassin\Util.html
cd lib\mail\spamassassin\plugin
for %%f in (*.*) do call pod2html %%f --outfile \perl\html\site\lib\mail\spamassassin\plugins\%%f.html --quiet
cd ..\..\..\..}}}