Upgrade from 7.63 to 7.64 fails

Adam Zell zellster at gmail.com
Thu Nov 19 12:18:39 MSK 2009


I believe the problem is that Linux refuses to overwrite the older version
of nginx while it is running (Text file busy).  Perhaps something like:

mv /usr/local/sbin/nginx /usr/local/sbin/nginx.old
make install

On Thu, Nov 19, 2009 at 12:54 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>
> On Thu, Nov 19, 2009 at 02:00:24AM +0100, Luka Horvatic wrote:
>
> > All previous updates worked fine and now i get following error on make
> > install:
> > make[1]: Entering directory `/usr/local/src/nginx-0.7.64'
> > test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
> > test -d '/usr/local'            || mkdir -p '/usr/local'
> > test ! -f '/usr/local/sbin'             || mv '/usr/local/sbin'
> > '/usr/local/sbin.old'
> > cp objs/nginx '/usr/local/sbin'
> > cp: cannot create regular file `/usr/local/sbin/nginx': Text file busy
> > make[1]: *** [install] Error 1
> > make[1]: Leaving directory `/usr/local/src/nginx-0.7.64'
> > make: *** [install] Error 2
> > What to do?
>
> Looks like you did
>
> $ ./configure --sbin-path=/usr/local/sbin
>
> It's wrong, as --sbin-path sets full path to nginx binary file
> (including filename itself).  Use
>
> $ ./configure --sbin-path=/usr/local/sbin/nginx
>
> instead.
>
> Maxim Dounin
>
>


-- 
Adam
zellster at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091119/8d0e693d/attachment.html>


More information about the nginx mailing list