<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
update: so I ran the following command:<br>
<br>
<tt><tt>auto/configure --with-cc=gcc --prefix=
--conf-path=conf/nginx.conf --pid-path=nginx.pid
--http-log-path=logs/access.log --error-log-path=logs/error.log</tt><tt><tt>
</tt></tt><tt><tt><tt> --without-http_gzip_module </tt>--without-http_rewrite_module</tt></tt></tt><br>
<br>
and it creates the objs/Makefile (35kb) and Makefile (1kb) and
directory structure of the sources. there is also an autoconf.err
file with a single line in it: checking for gcc -pipe switch<br>
<br>
running:<br>
<br>
<tt>make -f objs/Makefile</tt><tt><br>
</tt><br>
populates the directory structure with .o files, and produces
nginx.exe which is about 3.14 MB (3,293,712 bytes). can I just use
that file or do I still need to run "make install"? running<br>
<br>
<tt>make install -f objs/Makefile</tt><br>
<br>
generates an error: <br>
<br>
test -d '' || mkdir -p ''<br>
mkdir: `': No such file or directory<br>
make: *** [install] Error 1<br>
<br>
running the nginx.exe file creates two processes named nginx, but
requests to localhost:8080 (I changed the port in nginx.conf) hang,
and error.log shows the following:<br>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">2015/12/27 11:22:48 [alert] 10032#9464: GetQueuedCompletionStatus() returned operation error (1236: The network connection was aborted by the local system)
2015/12/27 11:22:48 [alert] 10032#9464: *1 connection already closed while waiting for request, client: 127.0.0.1, server: 0.0.0.0:8080</pre>
<br>
<br>
<br>
On 12/26/2015 10:14 PM, Igal @ Lucee.org wrote:<br>
<blockquote cite="mid:567F81A9.8010902@lucee.org" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi,<br>
<br>
I posted a question at <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://stackoverflow.com/questions/34478016/building-nginx-from-source-on-windows">http://stackoverflow.com/questions/34478016/building-nginx-from-source-on-windows</a>
-- copied below:<br>
<br>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">I'm trying to build nginx from source on Windows. I got
the following done:</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">1) Installed mingw, gcc, and msys</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">2) Downloaded the nginx source code</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">3) Ran the following in the msys console from the nginx
source folder:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">$ auto/configure --with-cc=gcc --without-http_rewrite_module --without-http_gzip_module
(output omitted)
$ make -f objs/Makefile
(output omitted)
$ make install -f objs/Makefile
(output omitted)
</code></pre>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">This produced the nginx.exe file in the objs folder, but
when I tried to run it I get the following error:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">$ nginx.exe
nginx: [alert] could not open error log file: CreateFile() "/usr/local/nginx/logs/error.log" failed
(3: The system cannot find the path specified)
2015/12/26 21:49:25 [emerg] 10200#9700: CreateFile() "/usr/local/nginx/conf/nginx.conf" failed
(3: The system cannot find the path specified)
</code></pre>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">But when I run<span class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">ls /usr/local/nginx</code><span
class="Apple-converted-space"> </span>I see that the<span
class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">conf</code><span
class="Apple-converted-space"> </span>and<span
class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">logs</code><span
class="Apple-converted-space"> </span>directories are there,
and the conf directory has some files in it:</p>
<pre style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(34, 36, 38); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);">$ ls -l conf
total 34
-rw-r--r-- 1 Admin Administrators 1077 Dec 26 21:30 fastcgi.conf
-rw-r--r-- 1 Admin Administrators 1077 Dec 26 21:30 fastcgi.conf.default
-rw-r--r-- 1 Admin Administrators 1007 Dec 26 21:30 fastcgi_params
-rw-r--r-- 1 Admin Administrators 1007 Dec 26 21:30 fastcgi_params.default
-rw-r--r-- 1 Admin Administrators 2837 Dec 26 21:30 koi-utf
-rw-r--r-- 1 Admin Administrators 2223 Dec 26 21:30 koi-win
-rw-r--r-- 1 Admin Administrators 3957 Dec 26 21:30 mime.types
-rw-r--r-- 1 Admin Administrators 3957 Dec 26 21:30 mime.types.default
-rw-r--r-- 1 Admin Administrators 2656 Dec 26 21:30 nginx.conf
-rw-r--r-- 1 Admin Administrators 2656 Dec 26 21:30 nginx.conf.default
-rw-r--r-- 1 Admin Administrators 636 Dec 26 21:30 scgi_params
-rw-r--r-- 1 Admin Administrators 636 Dec 26 21:30 scgi_params.default
-rw-r--r-- 1 Admin Administrators 664 Dec 26 21:30 uwsgi_params
-rw-r--r-- 1 Admin Administrators 664 Dec 26 21:30 uwsgi_params.default
-rw-r--r-- 1 Admin Administrators 3610 Dec 26 21:30 win-utf
</code></pre>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">I tried to run<span class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">$ chmod -R 0777 conf</code><span
class="Apple-converted-space"> </span>but that did not seem to
make a difference.</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">What am I doing wrong? And how can I change it so that
the logs and conf files will be searched in the local directory
of nginx.exe and not in the<span class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">/usr/local/nginx folder</code><span
class="Apple-converted-space"> </span>(which I found after
some searching at<span class="Apple-converted-space"> </span><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">msys\1.0\local\nginx</code>)?</p>
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
font-size: 15px; clear: both; color: rgb(34, 36, 38);
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 15.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">Thanks!</p>
<br>
<br>
<div class="moz-signature">-- <br>
<p>Igal Sapir <br>
Lucee Core Developer <br>
<a moz-do-not-send="true" href="http://lucee.org/">Lucee.org</a></p>
</div>
</blockquote>
<br>
</body>
</html>