我从github下载了buku程序,如下:
$ git clone https://github.com/jarun/Buku.git
然后
$ cd Buku
$ sudo make install
install -m755 -d /usr/local/bin
install -m755 -d /usr/local/share/man/man1
install: cannot create directory ‘/usr/local/share/man/man1’: File exists
Makefile:11: recipe for target 'install' failed
make: *** [install] Error 1
我该如何解决这个问题?Makefile 如下:
$ cat Makefile
PREFIX ?= /usr/local
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku
.PHONY: all install uninstall
all:
install:
install -m755 -d $(BINDIR)
install -m755 -d $(MANDIR)
install -m755 -d $(DOCDIR)
gzip -c buku.1 > buku.1.gz
install -m755 buku $(BINDIR)/buku
install -m644 buku.1.gz $(MANDIR)
install -m644 README.md $(DOCDIR)
rm -f buku.1.gz
uninstall:
rm -f $(BINDIR)/buku
rm -f $(MANDIR)/buku.1.gz
rm -rf $(DOCDIR)
作为附加信息:
$ namei -lx /usr/local/share/man/man1
f: /usr/local/share/man/man1
Drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root local
drwxr-xr-x root root share
drwxr-xr-x root root man
-rw-r--r-- root root man1