I am using MSYS2 in Windows 10. git
works fine, however gitk
gives the error:
/usr/bin/gitk: line 3: exec: wish: not found
Some googling suggested this may be because TK is not installed, however I tried:
pacman -S tk
which gave the error:
error: target not found: tk
How do I get gitk to work in this environment?
Try running the 64-bit MinGW shell (one of the three environments provided by MSYS2), installing the package mingw-w64-x86_64-tk
, and then running gitk
.
Gitk works on my system, and wish
is provided /mingw64/bin/wish.exe
.