Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitk don't work because of strange error macOS 11 or later required

Tags:

git

macos

gitk

When starting gitk command line getting the error. It's strange because I have newest version of Mac OS 11.1 I just upgraded git but it doesn't helped. Any ideas what to do?

macOS 11 or later required !
/usr/bin/wish: line 2: 50965 Abort trap: 6           "$(dirname $0)/../../System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Wish.app/Contents/MacOS/Wish" "$@"```

like image 270
Hania Urbaniak Avatar asked Dec 16 '20 16:12

Hania Urbaniak


2 Answers

Solved it by running brew install tcl

like image 143
Cherpak Evgeny Avatar answered Oct 11 '22 00:10

Cherpak Evgeny


I have seen the most popular answer:

Solved it by running brew install tcl

But after I done this, gitk still not work, I have two versions of wish installed:

$ type -a wish
$ wish is /usr/local/bin/wish
$ wish is /usr/bin/wish

Finally I found my solution: I edit my .zshrc file, add alias for gitk:

alias gitk="/usr/local/bin/wish $(which gitk)"
like image 42
LiuJQ Avatar answered Oct 11 '22 02:10

LiuJQ