httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark A. Craig" <>
Subject Re: [users@httpd] Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL
Date Wed, 03 Oct 2007 19:52:12 GMT
I have the Visual Studio and C++ 2005 Express Edition that MS gave away free... 
would that work?  I actually tried to first compile the module with that, but 
got so many errors from trying that I gave up.  So what do I need to do to make 
the APXS feature work correctly?  What's the vcvars32.bat file?

Oh... THERE it is!  Gotta give this another try....


-------- Original Message  --------
Subject: Re: [users@httpd] Compiling module under Windows for Apache 2.2.4 with 
From: William A. Rowe, Jr. <>
Date: Wednesday, October 03, 2007 09:24:40 AM

> Mark A. Craig wrote:
>> I've been making futile efforts to compile a module, mod_httpbl.c, and
>> not having any luck.  I found and installed (or at least think I have)
>> the contents of, with which William/Bill Rowe seems to
>> have had some involvement.
> Thanks on that are to Randy Kobes :)
>> However, when I try to follow the
>> recommended instructions for compiling this module, it fails with
>> various errors.  Along the way I discovered that apxs.bat used a
>> long-filename reference to perl.exe, but it wasn't properly quoted and
>> it was failing to find perl.exe, so I had to actually edit apxs.bat and
>> change the reference to 8.3 format.
>> The command I'm instructed to use to compile it is:
>> apxs -c -i -a mod_httpbl.c
>> When I try this from a Command window in \bin\ and the .c file in that
>> same directory, I get the following response:
>> cl  /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG
>> -I"C:\PROGRA~1\APACHE~1\Apache2.2\include"  /c /Fomod_httpbl.lo
>> mod_httpbl.c
>> 'cl' is not recognized as an internal or external command,
>> operable program or batch file.
>> apxs:Error: Command failed with rc=65536
>> Is it going to be practical to compile this module?  I may be in far
>> over my head.
> If you don't have a VC compiler, and you don't run the vcvars32.bat file
> first, it's not going to find a cl.exe to run.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message