# HG changeset patch # User Sergey Budnevitch # Date 1319119057 0 # Node ID f9fe7330f8e8b55b5a18c072f30ba659edd738fb # Parent d3e240f7157cf4d1ad0474b35527a75660c05b34 Win32 build instructions added diff -r d3e240f7157c -r f9fe7330f8e8 xml/en/docs/howto.xml --- a/xml/en/docs/howto.xml Thu Oct 20 13:26:11 2011 +0000 +++ b/xml/en/docs/howto.xml Thu Oct 20 13:57:37 2011 +0000 @@ -18,6 +18,10 @@ + + + + diff -r d3e240f7157c -r f9fe7330f8e8 xml/en/docs/howto_build_on_win32.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/howto_build_on_win32.xml Thu Oct 20 13:57:37 2011 +0000 @@ -0,0 +1,123 @@ + + + + +
+ +
+ + +To build nginx on the Win32 platform you need: + + + + +Visuial C compiler. Visual Studio 8 and 10 are known to work. + + + +MSYS. + + + +Perl, if you want to build openssl and nginx with ssl support. +For example ActivePerl +or Strawberry Perl. + + + +Subversion client. Choose any from list + + + +PCRE, zlib +and openssl libraries sources. + + + + + +
+ +
+ + +Ensure that paths to Perl, Subversion and MSYS bin directories are added to +PATH environment variable before you start build. To set Visual C environment +run vcvarsall.bat script from Visual C directory. + + + + +To build nginx: + + + +Start MSYS bash + + + +Check out nginx sources from the svn.nginx.org repository. For example: + +svn co svn://svn.nginx.org/tags/release-1.1.6 + + + + +Create build directory and lib directory, and unpack zlib, PCRE and openssl libraries +sources into lib directory: + +mkdir objs +mkdir objs/lib +cd objs/lib +unzip ../../pcre-8.12.zip +tar -xzf ../../zlib-1.2.5.tar.gz +tar -xzf ../../openssl-1.0.0e.tar.gz + + + + +Run configure script: + +auto/configure --with-cc=cl --builddir=objs --prefix= --conf-path=conf/nginx.conf \ +--pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log \ +--sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp \ +--http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp \ +--with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs/lib/pcre-8.12 \ +--with-zlib=objs/lib/zlib-1.2.5 --withopenssl=objs/lib/openssl-1.0.0e \ +--with-select_module --with-http_ssl_module --with-ipv6 + + + + +Run make: + +nmake -f objs/Makefile + + + + + + + + +
+ +
+ + + + + + + + + + + +
+