Install error

Maxim Dounin mdounin at mdounin.ru
Tue Jul 31 02:39:10 MSD 2007


Hello!

On Mon, 30 Jul 2007, Adam Zell wrote:

> Performing a fresh install on Ubuntu 4.1.1 where the destination directory
> (/opt/nginx) does not exist:
>
> root at xxxxx:~/src/nginx-0.6.6# make install
> make -f objs/Makefile install
> make[1]: Entering directory `/home/foo/src/nginx-0.6.6'
> test -d '/opt/nginx' || mkdir -p '/opt/nginx'
> test -d '/opt/nginx/sbin'               || mkdir -p '/opt/nginx/sbin'
> test ! -f '/opt/nginx/sbin/nginx' || mv '/opt/nginx/sbin/nginx'
> '/opt/nginx/sbin/nginx.old'
> cp objs/nginx '/opt/nginx/sbin/nginx'
> test -d '/opt/nginx' || mkdir -p '/opt/nginx'
> cp conf/koi-win '/opt/nginx'
> cp conf/koi-utf '/opt/nginx'
> cp conf/win-utf '/opt/nginx'
> test -f '/opt/nginx/mime.types'                 || cp conf/mime.types
> '/opt/nginx'
> cp conf/mime.types '/opt/nginx/conf/nginx.conf/mime.types.default'
> cp: cannot create regular file
> `/opt/nginx/conf/nginx.conf/mime.types.default': No such file or directory
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/home/azell/src/nginx-0.6.6'
> make: *** [install] Error 2
>
> It appears that the /opt/nginx/conf directory has not been created before
> the cp command.
>

Try this patch:

http://permalink.gmane.org/gmane.comp.web.nginx.english/1294

Maxim Dounin





More information about the nginx mailing list