Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting gitk Error

Tags:

git

macos

gitk

When I'm loading gitk I get an error about an argument

Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn
    while executing
"wm state . $geometry(state)"
    (procedure "makewindow" line 320)
    invoked from within
"makewindow"
    (file "/usr/local/git/bin/gitk" line 11250)

Anybody knows a solution? I'm working on Mac OS X 10.6.3

thx!

like image 487
23tux Avatar asked Apr 13 '10 12:04

23tux


2 Answers

I had this problem on Lion. This was my solution:

cd 
rm -rf .gitk
like image 83
ejfresch Avatar answered Nov 12 '22 19:11

ejfresch


As mention in this blog post:

使用Macport安裝mercurial結果安裝了一堆相依的library,結果造成gitk不能執行

Err... I meant:

The results using Macport installation, mercurial installs a bunch of dependencies of the library, resulting in a gitk which can not perform.

Gitk will use the wrong tk library version.

The issue was that the first installation has modified the .bashrc with:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

modifying the original PATH (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin)

Try instead in the .bashrc:

export PATH=$PATH:/opt/local/bin:/opt/local/sbin
like image 39
VonC Avatar answered Nov 12 '22 19:11

VonC