You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2010/08/02 17:26:42 UTC
[Httpd Wiki] Update of "Win32VC9Build" by tdonovan
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "Win32VC9Build" page has been changed by tdonovan.
The comment on this change is: Changes for zlib 1.2.5 & update httpd to 2.2.16.
http://wiki.apache.org/httpd/Win32VC9Build?action=diff&rev1=12&rev2=13
--------------------------------------------------
= Building Apache with the Microsoft Windows 2008 SDK =
- [[http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF|Windows SDK for Windows Server 2008 and .NET Framework 3.5]] contains a command-line compiler suitable for building Apache 2.2.14 on Windows XP or later.
+ [[http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF|Windows SDK for Windows Server 2008 and .NET Framework 3.5]] contains a command-line compiler suitable for building Apache 2.2.16 on Windows XP or later.
Despite the ''"2008"'' name - this freely available SDK is appropriate to use on Windows Server 2003, Windows Server 2008, Windows Vista, and Windows XP.
This SDK contains the Visual C++ 2008 command-line compiler (a.k.a. VC9), the MASM v9.0 assembler, and the Windows libraries needed to build and run Apache.
- These are the steps to build Apache 2.2.14 with OpenSSL 0.9.8l ''(Version 0.9.8 lower-case "L")'' and Zlib 1.2.3 using the VC9 command-line compiler included in this Windows SDK:
+ These are the steps to build Apache 2.2.16 with OpenSSL 0.9.8o ''(Version 0.9.8 lower-case letter "O")'' and Zlib 1.2.5 using the VC9 command-line compiler included in this Windows SDK:
== Tools Needed to Build httpd ==
Install the [[http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF|Windows SDK for Windows Server 2008 and .NET Framework 3.5]] (approx: 450mb)
@@ -38, +38 @@
PATH=%PATH%;C:\Perl\bin;C:\Program Files\GnuWin32\bin
}}}
== Download the source code ==
- ==== Download and extract the Apache httpd version 2.2.14 Windows source (not the Unix source) ====
+ ==== Download and extract the Apache httpd version 2.2.16 Windows source (not the Unix source) ====
{{{
- WGET http://www.apache.org/dist/httpd/httpd-2.2.14-win32-src.zip
+ WGET http://www.apache.org/dist/httpd/httpd-2.2.16-win32-src.zip
}}}
- Open httpd-2.2.14-win32-src.zip and extract it, creating a httpd-2.2.14 directory
+ Open httpd-2.2.14-win32-src.zip and extract it, creating a httpd-2.2.16 directory
- ==== Download and extract the Zlib version 1.2.3 source into httpd-2.2.14\srclib\zlib ====
+ ==== Download and extract the Zlib version 1.2.5 source into httpd-2.2.16\srclib\zlib ====
{{{
- CD httpd-2.2.14\srclib
+ CD httpd-2.2.16\srclib
- WGET http://www.zlib.net/zlib-1.2.3.tar.gz
+ WGET http://www.zlib.net/zlib-1.2.5.tar.gz
- GZIP -d zlib-1.2.3.tar.gz
+ GZIP -d zlib-1.2.5.tar.gz
- TAR xf zlib-1.2.3.tar
+ TAR xf zlib-1.2.5.tar
- RENAME zlib-1.2.3 zlib
+ RENAME zlib-1.2.5 zlib
}}}
- ==== Download and extract the OpenSSL version 0.9.8l source, into httpd-2.2.14\srclib\openssl ====
+ ==== Download and extract the OpenSSL version 0.9.8o source, into httpd-2.2.16\srclib\openssl ====
{{{
- CD httpd-2.2.14\srclib
+ CD httpd-2.2.16\srclib
- WGET http://www.openssl.org/source/openssl-0.9.8l.tar.gz
+ WGET http://www.openssl.org/source/openssl-0.9.8o.tar.gz
- GZIP -d openssl-0.9.8l.tar.gz
+ GZIP -d openssl-0.9.8o.tar.gz
- TAR xf openssl-0.9.8l.tar
+ TAR xf openssl-0.9.8o.tar
- RENAME openssl-0.9.8l openssl
+ RENAME openssl-0.9.8o openssl
}}}
== Build Zlib ==
{{{
- CD httpd-2.2.14\srclib\zlib
+ CD httpd-2.2.16\srclib\zlib
+ ML /coff /Zi /c contrib\masmx86\inffas32.asm
- ML /coff /Zi /c contrib\masm686\match.asm
+ ML /coff /Zi /c contrib\masmx86\match686.asm
- NMAKE -f win32\Makefile.msc LOC="-D_CRT_SECURE_NO_DEPRECATE /wd4996 -DASMV" OBJA="match.obj"
+ NMAKE -f win32\Makefile.msc LOC="-D_CRT_SECURE_NO_DEPRECATE /wd4996 -DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
MT -manifest zlib1.dll.manifest -outputresource:zlib1.dll;2
}}}
== Build OpenSSL ==
{{{
- CD httpd-2.2.14\srclib\openssl
+ CD httpd-2.2.16\srclib\openssl
PERL Configure VC-WIN32 enable-camellia disable-idea
ms\do_masm
NMAKE -f ms\ntdll.mak
@@ -80, +81 @@
== Build and install Apache httpd ==
{{{
- CD httpd-2.2.14
+ CD httpd-2.2.16
NMAKE -f Makefile.win installr
}}}
- This installs Apache 2.2.14 into C:\Apache22. You can add {{{INSTDIR=directory}}} to the NMAKE command to choose a different installation directory. For example: {{{NMAKE -f Makefile.win INSTDIR=D:\Apache2 installr}}}
+ This installs Apache 2.2.16 into C:\Apache22. You can add {{{INSTDIR=directory}}} to the NMAKE command to choose a different installation directory. For example: {{{NMAKE -f Makefile.win INSTDIR=D:\Apache2 installr}}}
If you copy Apache to another machine, remember to install the [[http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF|Microsoft Visual C++ 2008 Redistributable Package]] before running it.