Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use gitk with msys2?

Tags:

git

windows

msys2

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?

like image 682
M.M Avatar asked Jan 25 '16 04:01

M.M


People also ask

Is MSYS2 better than Cygwin?

The difference between MSYS2 and CYGWIN is that MSYS2 is oriented to the development of native Windows packages, while CYGWIN tries to provide a complete POSIX-like system to run any Unix application on it. For that reason, we recommend the use of MSYS2 as a subsystem to be used with Conan.

Does git bash use MSYS2?

Git for Windows leverages MSYS2 and ships with a subset of its files.

How do I add MSYS2 to path?

Adding MSYS2 to your PATH variableClick on the “Environment Variables” button. In the “System Variables” section, scroll down and double-click on the “Path” variable. If you're on Windows 7/8, add the text C:\msys32\usr\bin;C:\msys32\usr\local\bin; to the beginning of the variable value.


1 Answers

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.

like image 115
David Grayson Avatar answered Oct 07 '22 00:10

David Grayson