Greetings,<br><br><div><span class="gmail_quote">On 7/30/07, <b class="gmail_sendername">Maxim Dounin</b> <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> 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>> Performing a fresh install on Ubuntu 4.1.1 where the destination directory<br>> (/opt/nginx) does not exist:<br>><br>> root@xxxxx:~/src/nginx-0.6.6#
make install<br>> make -f objs/Makefile install<br>> make[1]: Entering directory `/home/foo/src/nginx-0.6.6'<br>> test -d '/opt/nginx' || mkdir -p '/opt/nginx'<br>> test -d '/opt/nginx/sbin' || mkdir -p '/opt/nginx/sbin'
<br>> test ! -f '/opt/nginx/sbin/nginx' || mv '/opt/nginx/sbin/nginx'<br>> '/opt/nginx/sbin/nginx.old'<br>> cp objs/nginx '/opt/nginx/sbin/nginx'<br>> test -d '/opt/nginx' || mkdir -p '/opt/nginx'
<br>> cp conf/koi-win '/opt/nginx'<br>> cp conf/koi-utf '/opt/nginx'<br>> cp conf/win-utf '/opt/nginx'<br>> test -f '/opt/nginx/mime.types' || cp conf/mime.types
<br>> '/opt/nginx'<br>> cp conf/mime.types '/opt/nginx/conf/nginx.conf/mime.types.default'<br>> cp: cannot create regular file<br>> `/opt/nginx/conf/nginx.conf/mime.types.default': No such file or directory
<br>> make[1]: *** [install] Error 1<br>> make[1]: Leaving directory `/home/azell/src/nginx-0.6.6'<br>> make: *** [install] Error 2<br>><br>> It appears that the /opt/nginx/conf directory has not been created before
<br>> the cp command.<br>><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. 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). 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>