Hania Urbaniak
Hania Urbaniak

Reputation: 83

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

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" "$@"```

Upvotes: 8

Views: 4979

Answers (3)

Kelvin Chan
Kelvin Chan

Reputation: 1

LiuJQ's solution works. It's indeed the wish problem. I fixed by adding alias for gitk by adding the following line in ~/.bashrc.

alias gitk="/usr/local/bin/wish $(which gitk)"

Note: you need to reopen the terminal for this to take effect.

Upvotes: 0

LiuJQ
LiuJQ

Reputation: 869

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)"

Upvotes: 2

Cherpak Evgeny
Cherpak Evgeny

Reputation: 2770

Solved it by running brew install tcl

Upvotes: 19

Related Questions