Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAC + git gui -> version conflict for package "Tcl": have 8.5.9, need 8.6

Tags:

git

macos

I am getting this error when I click git gui from my terminal:

version conflict for package "Tcl": have 8.5.9, need 8.6

Can you help me to resolve this? (using mac)

like image 815
midhun k Avatar asked Jan 24 '20 06:01

midhun k


2 Answers

Installing ActiveState tcltk 8.6.9 and compiling from source solves it for me (MacOs 10.15):

brew reinstall git -s
like image 162
poliveir Avatar answered Oct 01 '22 05:10

poliveir


This looks like Homebrew/homebrew-core issue 49122

On Mac 10.14, after my last brew update, latest git (2.5.0) fails when I run git gui:

version conflict for package "Tcl": have 8.5.9, need 8.6

I tried installing tcl-tk (which does install 8.6) but it didn't fix the issue, so I assume git doesn't use the version installed with brew.

Possible fix: Homebrew/homebrew-core PR 49136

As a tcl-tk dependency for Git is not considered acceptable, this change moves the gitk and git-gui tools to a new formula and sets the NO_TCLTK flag when building Git.

Additionally, this change ensures that we no longer install a .app for git-gui.
Instead, we use the homebrew-installed tcl-tk wish binary to run git-gui and gitk.

3 days later, Mike McQuaid just accepted a fix from Alexander Richardson, and the issue is now closed.

Homebrew/homebrew-core commit dfa3ccf

git-gui: split from git formula.

As a tcl-tk dependency for Git is not considered acceptable, this change moves the gitk and git-gui tools to a new formula and sets the NO_TCLTK flag when building Git.

Additionally, this change ensures that we no longer install a .app for git-gui.
Instead, we use the homebrew-installed tcl-tk wish binary to run git-gui and gitk.

Without this change, all dialogs that are shown by git-gui are blank windows and can only be closed by memorizing the location of the buttons.

like image 26
VonC Avatar answered Oct 01 '22 06:10

VonC