neilbrown / wiggle

apply rejected patches and perform word-wise diffs
http://neil.brown.name/wiggle
GNU General Public License v2.0
91 stars 8 forks source link

trouble installing on m1 mac #24

Closed geofflangenderfer closed 2 years ago

geofflangenderfer commented 2 years ago
wiggle 
❯ make install
/usr/bin/install -d /usr/bin /usr/share/man/man1
install: chmod 755 /usr/bin: Operation not permitted
install: chmod 755 /usr/share/man/man1: Operation not permitted
/usr/bin/install  -m 755 ./wiggle /usr/bin
install: /usr/bin/wiggle: Operation not permitted
make: *** [install] Error 71

wiggle 
❯ sudo make install
Password:
/usr/bin/install -d /usr/bin /usr/share/man/man1
install: chmod 755 /usr/bin: Operation not permitted
install: chmod 755 /usr/share/man/man1: Operation not permitted
/usr/bin/install  -m 755 ./wiggle /usr/bin
install: /usr/bin/wiggle: Operation not permitted
make: *** [install] Error 71

wiggle 
❯ uname -a
Darwin geoff 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:05 PST 2021; root:xnu-7195.141.14~1/RELEASE_ARM64_T8101 arm64
geofflangenderfer commented 2 years ago

here's what I did to install

wiggle 
❯ git diff
diff --git a/Makefile b/Makefile
index 6942775..eb4cd65 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CWFLAGS=-Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-mis
 endif
 CFLAGS=$(OptDbg) -I. $(CWFLAGS)

-PREFIX  = /usr
+PREFIX  = $HOME/.local
 # STRIP = -s
 INSTALL = /usr/bin/install
 DESTDIR =

wiggle 
❯ mv wiggle /opt/homebrew/bin

wiggle 
❯ which wiggle
/opt/homebrew/bin/wiggle

wiggle 
❯ wiggle --version
wiggle v1.3 2020-10-03 GPL-2+ http://neil.brown.name/wiggle/