# Problem compiling nginx from svn source with http\_push\_module on windows

**URL:** <https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265>\
**Category:** NGINX\
**Created:** [July 9, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265 "2011-07-09T21:35:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 9, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265/1 "2011-07-09T21:35:36Z")

</div>

Hello everyone,

I’m new to using SVN and what I want to achieve is:  
custom compiled nginx web server with http push module on windows using  
either mingw, cygwin or Visual Studio compilers.

The problem lies in 2 things:

1. after I checked out the svn, it downloaded almost 2 gigabytes of data  
and I don’t know how to compile it since in trunk directory there are no  
configure scripts i could run
2. after downloading linux version of nginx from [nginx.org](http://nginx.org) and unpacking  
it, i tried to configure it but i get error on “checking int size” but  
if i run the configuration script with parameters the windows version of  
nginx from site was compiled with, configuration script finishes without  
problem but then i cannot “make” the source “no rule to make target  
src/os/win32/ngx\_win32\_config.h…”

In this thread [Re: compile nginx for windows](http://forum.nginx.org/read.php?2,192475,192511) the  
author of nginx mentions, that there are sources for window on svn so  
i’ve started to going that way but like i’ve said i don’t know how to  
configure it since there are no configuration scripts there.

Please help me. I’m struggling with this for some time now and I don’t  
know what else I could do.

Posted at Nginx Forum:

> **[problem compiling nginx from svn source with http\_push\_module on windows](https://forum.nginx.org/read.php?2,212047,212047#msg-212047)**
>
> Hello everyone, I'm new to using SVN and what I want to achieve is: custom compiled nginx web server with http push module on windows using either mingw, cygwin or Visual Studio compilers. The problem lies in 2 things: 1) after I checked out the svn,...

---

<div class="post-metadata">

**Author:** ![t0meck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@t0meck](https://www.ruby-forum.com/u/t0meck)\
**Post date:** [July 10, 2011, 4:51pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265/2 "2011-07-10T16:51:49Z")

</div>

Hello!

On Sat, Jul 09, 2011 at 03:34:43PM -0400, t0meck wrote:

> Hello everyone,
> 
> I’m new to using SVN and what I want to achieve is:  
> custom compiled nginx web server with http push module on windows using  
> either mingw, cygwin or Visual Studio compilers.
> 
> The problem lies in 2 things:
> 
> 1. after I checked out the svn, it downloaded almost 2 gigabytes of data  
> and I don’t know how to compile it since in trunk directory there are no  
> configure scripts i could run

In svn, configure script is located in auto/configure. You may  
run as ./auto/configure. Note there are also other minor layout  
differences from release tarballs (e.g. building manpage will  
fail).

> 1. after downloading linux version of nginx from [nginx.org](http://nginx.org) and unpacking  
> it, i tried to configure it but i get error on “checking int size” but  
> if i run the configuration script with parameters the windows version of  
> nginx from site was compiled with, configuration script finishes without  
> problem but then i cannot “make” the source “no rule to make target  
> src/os/win32/ngx\_win32\_config.h…”

There are no win32-related files in release tarballs.

> In this thread [http://forum.nginx.org/read.php?2,192475,192511](http://forum.nginx.org/read.php?2,192475,192511) the  
> author of nginx mentions, that there are sources for window on svn so  
> i’ve started to going that way but like i’ve said i don’t know how to  
> configure it since there are no configuration scripts there.
> 
> Please help me. I’m struggling with this for some time now and I don’t  
> know what else I could do.

Right now the only person who knows how to correctly compile  
native nginx for Windows is Igor, and in the message you’ve  
referenced he clearly states that he isn’t going to support  
building procedure.

I was able to compile nginx binary using a combination of MSYS  
environment from MinGW and Visual C compiler, with something like  
this:

./auto/configure --with-cc=“cl” --without-http\_rewrite\_module  
–without-http\_gzip\_module  
nmake

No idea how it works though.

Attached patch shuts up some warnings as shown by msvc.

Maxim D.

---

<div class="post-metadata">

**Author:** ![t0meck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@t0meck](https://www.ruby-forum.com/u/t0meck)\
**Post date:** [July 11, 2011, 9:28pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265/3 "2011-07-11T21:28:08Z")

</div>

Thanks for fast reply.  
I was able to start making windows executable under linux host.

I’ve downloaded original nginx and then checked with “-V” option  
configure parameters.  
In the end I had to do some changes to the Makefile generated by  
configure script which i’ve copied from linux tarball.

In the end, make crashed after making man pages. If i remember correctly  
it was on openssl or other thing i couldn’t fix.  
If only Igor could produce his packages with http\_push module compiled  
in…

Posted at Nginx Forum:

> **[Re: problem compiling nginx from svn source with http\_push\_module on windows](https://forum.nginx.org/read.php?2,212047,212224#msg-212224)**
>
> Hello everyone, I'm new to using SVN and what I want to achieve is: custom compiled nginx web server with http push module on windows using either mingw, cygwin or Visual Studio compilers. The problem lies in 2 things: 1) after I checked out the svn,...

---

<div class="post-metadata">

**Author:** ![t0meck](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@t0meck](https://www.ruby-forum.com/u/t0meck)\
**Post date:** [February 10, 2012, 10:57pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265/4 "2012-02-10T22:57:11Z")

</div>

Sorry for posting on this old thread but I am really hoping that someone  
was able to get nginx and http\_push\_module compiled and running on  
Windows. If you did please let me know. If you didn’t, what route did  
you go instead. I’m very interested!

Thanks,

Eric

Posted at Nginx Forum:

> **[Re: problem compiling nginx from svn source with http\_push\_module on windows](https://forum.nginx.org/read.php?2,212047,222266#msg-222266)**
>
> Hello everyone, I'm new to using SVN and what I want to achieve is: custom compiled nginx web server with http push module on windows using either mingw, cygwin or Visual Studio compilers. The problem lies in 2 things: 1) after I checked out the svn,...
