Having successfully configured and compiled nsd (--prefix=/usr/local/nsd/3.2.2), the following happens when I try to install it:- $ sudo make install ./install-sh -c -d /usr/local/nsd/3.2.2/sbin ./install-sh -c -d /usr/local/nsd/3.2.2/etc/nsd ./install-sh -c -d /usr/local/nsd/3.2.2/var/db/nsd/ mkdir: cannot create directory `/usr/local/nsd/3.2.2/var/db/nsd/': File exists make: *** [install] Error 1 $ sudo make install ./install-sh -c -d /usr/local/nsd/3.2.2/sbin ./install-sh -c -d /usr/local/nsd/3.2.2/etc/nsd ./install-sh -c -d /usr/local/nsd/3.2.2/var/db/nsd/ ./install-sh -c -d /usr/local/nsd/3.2.2/var/db/nsd ./install-sh -c -d /usr/local/nsd/3.2.2/share/man ./install-sh -c -d /usr/local/nsd/3.2.2/share/man/man8 ./install-sh -c -d /usr/local/nsd/3.2.2/share/man/man5 ./install-sh -c nsd /usr/local/nsd/3.2.2/sbin/nsd ./install-sh -c zonec /usr/local/nsd/3.2.2/sbin/zonec ./install-sh -c nsdc.sh /usr/local/nsd/3.2.2/sbin/nsdc ./install-sh -c nsd-notify /usr/local/nsd/3.2.2/sbin/nsd-notify ./install-sh -c nsd-checkconf /usr/local/nsd/3.2.2/sbin/nsd-checkconf ./install-sh -c nsd-patch /usr/local/nsd/3.2.2/sbin/nsd-patch ./install-sh -c nsd-xfer /usr/local/nsd/3.2.2/sbin/nsd-xfer ./install-sh -c -m 644 ./nsd.8 /usr/local/nsd/3.2.2/share/man/man8 ./install-sh -c -m 644 ./nsdc.8 /usr/local/nsd/3.2.2/share/man/man8 ./install-sh -c -m 644 ./zonec.8 /usr/local/nsd/3.2.2/share/man/man8 ./install-sh -c -m 644 ./nsd-notify.8 /usr/local/nsd/3.2.2/share/man/man8/nsd-notify.8 ./install-sh -c -m 644 ./nsd-checkconf.8 /usr/local/nsd/3.2.2/share/man/man8/nsd-checkconf.8 ./install-sh -c -m 644 ./nsd-patch.8 /usr/local/nsd/3.2.2/share/man/man8/nsd-patch.8 ./install-sh -c -m 644 ./nsd-xfer.8 /usr/local/nsd/3.2.2/share/man/man8/nsd-xfer.8 ./install-sh -c -m 644 ./nsd.conf.5 /usr/local/nsd/3.2.2/share/man/man5/nsd.conf.5 ./install-sh -c -m 644 nsd.conf.sample /usr/local/nsd/3.2.2/etc/nsd/nsd.conf.sample As you can see, simply repeating the command causes it to complete successfully. The host is running GNU/Linux 2.6.25.3 i686. Regards, Chris Hills
On Sat, Jun 13, 2009 at 01:10:46PM +0200, Chris Hills <chaz at chaz6.com> wrote a message of 48 lines which said:> mkdir: cannot create directory `/usr/local/nsd/3.2.2/var/db/nsd/': File > existsI believe it is the same problem as reported here for Gentoo, OpenBSD, etc. The attached patch should solve it. ********************** dir.patch *********************** --- Makefile.in.orig 2009-05-20 23:26:57.000000000 +0200 +++ Makefile.in 2009-05-20 23:29:03.000000000 +0200 @@ -318,8 +318,6 @@ install: all $(INSTALL) -d $(DESTDIR)$(sbindir) $(INSTALL) -d $(DESTDIR)$(configdir) - $(INSTALL) -d $(DESTDIR)$(piddir) - $(INSTALL) -d $(DESTDIR)$(dbdir) $(INSTALL) -d $(DESTDIR)$(mandir) $(INSTALL) -d $(DESTDIR)$(mandir)/man8 $(INSTALL) -d $(DESTDIR)$(mandir)/man5