“Can’t find a usable tk.tcl” when running git-gui and gitk
Git標準のGUIにはgit guiとgitkがある。Ubuntuなどでは以下のコマンドでインストールできる。
sudo apt-get install git-gui gitk
しかし、Ubuntu14.04でGitのGUIとしてgit guiやgitkを試そうとすると以下のようにエラーがでて実行できなかった。
git gui
application-specific initialization failed: Can't find a usable tk.tcl in the following directories:
/home/senooken/local/stow/tcl-8.6.3/lib/tcl8.6/tk8.6 /home/senooken/local/stow/tcl-8.6.3/lib/tk8.6 /usr/lib/tk8.6 /lib/tk8.6 /usr/library
This probably means that tk wasn't installed properly.
Error in startup script: can't rename "tk_optionMenu": command doesn't exist
while executing
"rename tk_optionMenu real__tkOptionMenu"
(file "/usr/lib/git-core/git-gui" line 722)
以下のようにコマンドを管理者権限で実行するとできた。
sudo git gui
sudo gitk
参考:Error finding tcl.init when running Git GUI – Stack Overflow
