Greetings,<br><br><div><span class="gmail_quote">On 7/30/07, <b class="gmail_sendername">Maxim Dounin</b> &lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br><br>On Mon, 30 Jul 2007, Adam Zell wrote:<br><br>&gt; Performing a fresh install on Ubuntu 4.1.1 where the destination directory<br>&gt; (/opt/nginx) does not exist:<br>&gt;<br>&gt; root@xxxxx:~/src/nginx-0.6.6#
 make install<br>&gt; make -f objs/Makefile install<br>&gt; make[1]: Entering directory `/home/foo/src/nginx-0.6.6&#39;<br>&gt; test -d &#39;/opt/nginx&#39; || mkdir -p &#39;/opt/nginx&#39;<br>&gt; test -d &#39;/opt/nginx/sbin&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; || mkdir -p &#39;/opt/nginx/sbin&#39;
<br>&gt; test ! -f &#39;/opt/nginx/sbin/nginx&#39; || mv &#39;/opt/nginx/sbin/nginx&#39;<br>&gt; &#39;/opt/nginx/sbin/nginx.old&#39;<br>&gt; cp objs/nginx &#39;/opt/nginx/sbin/nginx&#39;<br>&gt; test -d &#39;/opt/nginx&#39; || mkdir -p &#39;/opt/nginx&#39;
<br>&gt; cp conf/koi-win &#39;/opt/nginx&#39;<br>&gt; cp conf/koi-utf &#39;/opt/nginx&#39;<br>&gt; cp conf/win-utf &#39;/opt/nginx&#39;<br>&gt; test -f &#39;/opt/nginx/mime.types&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; || cp conf/mime.types
<br>&gt; &#39;/opt/nginx&#39;<br>&gt; cp conf/mime.types &#39;/opt/nginx/conf/nginx.conf/mime.types.default&#39;<br>&gt; cp: cannot create regular file<br>&gt; `/opt/nginx/conf/nginx.conf/mime.types.default&#39;: No such file or directory
<br>&gt; make[1]: *** [install] Error 1<br>&gt; make[1]: Leaving directory `/home/azell/src/nginx-0.6.6&#39;<br>&gt; make: *** [install] Error 2<br>&gt;<br>&gt; It appears that the /opt/nginx/conf directory has not been created before
<br>&gt; the cp command.<br>&gt;<br><br>Try this patch:<br><br><a href="http://permalink.gmane.org/gmane.comp.web.nginx.english/1294">http://permalink.gmane.org/gmane.comp.web.nginx.english/1294</a><br><br>Maxim Dounin</blockquote>
<div><br>The patch prevents the error message, but breaks the installation directory structure.&nbsp; Files that used to be under /opt/nginx/conf are now directly installed under /opt/nginx (the default nginx.conf still refers to conf/mime.types).&nbsp; Is the change intentional?
<br><br>Thanks!<br><br></div></div>-- <br>Adam<br><a href="mailto:zellster@gmail.com">zellster@gmail.com</a><br>