我在 Windows 10 中使用 MSYS2。git
工作正常,但是 gitk
给出错误:
/usr/bin/gitk: line 3: exec: wish: not found
一些谷歌搜索表明这可能是因为没有安装 TK,但我试过了:
pacman -S tk
给出了错误:
error: target not found: tk
如何让 gitk 在这种环境下工作?
最佳答案
尝试运行64位的MinGW shell(MSYS2提供的三种环境之一),安装包mingw-w64-x86_64-tk
,然后运行gitk
.
Gitk 在我的系统上运行,wish
被提供 /mingw64/bin/wish.exe
。
关于windows - 如何在 msys2 中使用 gitk?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34985437/