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?
Hello!
On Thu, Nov 19, 2009 at 02:00:24AM +0100, Luka H. wrote:
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 D.
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
Maxim D. wrote:
Hello!
On Thu, Nov 19, 2009 at 01:18:39AM -0800, Adam Z. wrote:
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 installNo, the problem is that original report author used wrong
configure arguments.Maxim D.
Well i used same configure settings since version 7.60 and it always
worked without problem.I don’t see why now suddenly not working.
./configure --sbin-path=/usr/local/sbin --with-http_ssl_module
–without-mail_pop3_module --without-mail_imap_module
–without-mail_smtp_module --with-http_stub_status_module
Hello!
On Thu, Nov 19, 2009 at 01:18:39AM -0800, Adam Z. wrote:
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
No, the problem is that original report author used wrong
configure arguments.
Maxim D.
Hello!
On Thu, Nov 19, 2009 at 01:47:29PM +0100, Luka H. wrote:
–without-mail_smtp_module --with-http_stub_status_module
As I already said - it’s wrong, you should use
“–sbin-path=/usr/local/sbin/nginx” instead.
Wrong form you used may happen to work under some conditions.
There is no surprise here. It doesn’t mean that it’s correct
though.
Maxim D.