You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Guido van Brakel <gu...@xs4all.nl> on 2006/12/30 09:36:08 UTC

errors with spamassain in windows

Dear Sir/Madam,


Im trying to install SpamAssasin under Windows,I installed perl and nmake.
But I'm getting these errors:

---
C:\Perl\bin\perl.exe version.h.pl
version.h.pl: creating version.h
copy config.h.win config.h
copy spamc.h.win spamc.h
C:\Perl\bin\perl.exe ..\build\preprocessor -Mvars -iMakefile.win -oMakefile
cd ..
NMAKE -f spamc/Makefile spamc/spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cd spamc
NMAKE spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>
C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>spamassassin -D
< sample-spam
.txt
'spamassassin' is not recognized as an internal or external command,
operable program or batch file.

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

NMAKE -f spamc/Makefile spamc/spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cd spamc
NMAKE spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKE -f
spamc/Makefile spamc
/spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cd spamc
NMAKE spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>cd spamc

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>NMAKE
spamc.exe

Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.

C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>

Do you how I can fix it or how I let it work.

Yours Sincerely,

Guido



Re: errors with spamassain in windows

Posted by René Berber <r....@computer.org>.
Guido van Brakel wrote:

> Im trying to install SpamAssasin under Windows,I installed perl and nmake.
> But I'm getting these errors:
> 
> ---
> C:\Perl\bin\perl.exe version.h.pl
> version.h.pl: creating version.h
> copy config.h.win config.h
> copy spamc.h.win spamc.h
> C:\Perl\bin\perl.exe ..\build\preprocessor -Mvars -iMakefile.win -oMakefile
> cd ..
> NMAKE -f spamc/Makefile spamc/spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,

You don't have the C compiler (cl => Microsoft's Visual C++ Toolkit).

[snip]

You have 2 choices: get a pre-built version or install a complete development
environment.

I can tell you that if you have Cygwin, with compiler and perl installed, it is
easy to build SA: just enter cpan shell and use the command "install
Mail::SpamAssassin", that's it.  Another advantage of Cygwin's environment is
that you can really use the spamd server if you want (and spamc needs a server
to do its work).
-- 
René Berber


Re: errors with spamassain in windows

Posted by d....@yournetplus.com.
All you should really do within the directory SA was
unpacked into:

   perl makefile.pl
   nmake
   nmake install

You would have to have a C compiler installed to build
the spamc component.

If you want to use the spamd/spamc components, search
the archives of this list or google. There are a few 
Windows
ports of the two that can be used.

On Sat, 30 Dec 2006 09:36:08 +0100
  "Guido van Brakel" <gu...@xs4all.nl> wrote:
> Dear Sir/Madam,
> 
> 
> Im trying to install SpamAssasin under Windows,I 
>installed perl and nmake.
> But I'm getting these errors:
> 
> ---
> C:\Perl\bin\perl.exe version.h.pl
> version.h.pl: creating version.h
> copy config.h.win config.h
> copy spamc.h.win spamc.h
> C:\Perl\bin\perl.exe ..\build\preprocessor -Mvars 
>-iMakefile.win -oMakefile
> cd ..
> NMAKE -f spamc/Makefile spamc/spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c 
>utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external 
>command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>spamassassin 
>-D
> < sample-spam
> .txt
> 'spamassassin' is not recognized as an internal or 
>external command,
> operable program or batch file.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> NMAKE -f spamc/Makefile spamc/spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c 
>utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external 
>command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKE 
>-f
> spamc/Makefile spamc
> /spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c 
>utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external 
>command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>cd 
>spamc
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>NMAKE
> spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights 
>reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c 
>utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external 
>command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' 
>: return code '0x1'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>
> 
> Do you how I can fix it or how I let it work.
> 
> Yours Sincerely,
> 
> Guido
> 
> 


Re: errors with spamassain in windows

Posted by maillist <ma...@emailacs.com>.
Guido van Brakel wrote:
> Dear Sir/Madam,
>
>
> Im trying to install SpamAssasin under Windows,I installed perl and nmake.
> But I'm getting these errors:
>
> ---
> C:\Perl\bin\perl.exe version.h.pl
> version.h.pl: creating version.h
> copy config.h.win config.h
> copy spamc.h.win spamc.h
> C:\Perl\bin\perl.exe ..\build\preprocessor -Mvars -iMakefile.win -oMakefile
> cd ..
> NMAKE -f spamc/Makefile spamc/spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cd spamc
> NMAKE spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
> Stop.
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>spamassassin -D
> < sample-spam
> .txt
> 'spamassassin' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> NMAKE -f spamc/Makefile spamc/spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cd spamc
> NMAKE spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
> Stop.
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKE -f
> spamc/Makefile spamc
> /spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cd spamc
> NMAKE spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
> Stop.
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>cd spamc
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>NMAKE
> spamc.exe
>
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
> Stop.
>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>
>
> Do you how I can fix it or how I let it work.
>
> Yours Sincerely,
>
> Guido
>
>
>   
What is this, "Windows", you speak of?  Isn't it a reboot tool for PC's?

-=Aubrey=-



RE: errors with spamassain in windows

Posted by Bret Miller <br...@wcg.org>.
Answer n when it asks about building spamc.

Or try this port: http://physics.ucsd.edu/~epivovar/anti-spam.htm

Bret


> Im trying to install SpamAssasin under Windows,I installed 
> perl and nmake.
> But I'm getting these errors:
> 
> ---
> C:\Perl\bin\perl.exe version.h.pl
> version.h.pl: creating version.h
> copy config.h.win config.h
> copy spamc.h.win spamc.h
> C:\Perl\bin\perl.exe ..\build\preprocessor -Mvars 
> -iMakefile.win -oMakefile
> cd ..
> NMAKE -f spamc/Makefile spamc/spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>s
> pamassassin -D
> < sample-spam
> .txt
> 'spamassassin' is not recognized as an internal or external command,
> operable program or batch file.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> NMAKE -f spamc/Makefile spamc/spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>NMAKE -f
> spamc/Makefile spamc
> /spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cd spamc
> NMAKE spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x2'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7>cd spamc
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\s
> pamc>NMAKE
> spamc.exe
> 
> Microsoft (R) Program Maintenance Utility Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
> 
> cl /DWIN32 /W4 spamc.c replace\getopt.c libspamc.c utils.c ws2_32.lib
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
> return code '0x1'
> Stop.
> 
> C:\Downloads\Mail-SpamAssassin-3.1.7\Mail-SpamAssassin-3.1.7\spamc>
> 
> Do you how I can fix it or how I let it work.
> 
> Yours Sincerely,
> 
> Guido
> 
> 
>