How to use gitk with msys2?

我的梦境 提交于 2019-12-04 10:47:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!