问题
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?
回答1:
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
.
回答2:
I confirm C:\prgs\git\PortableGit-2.7.0-64-bit\cmd\gitk.exe
works just fine.
Make sure you are executing it from a regular CMD session or from C:\prgs\git\PortableGit-2.7.0-64-bit\git-bash.exe
I would not try and run it from a Cygwin session.
来源:https://stackoverflow.com/questions/34985437/how-to-use-gitk-with-msys2