Starting gitk Error

╄→гoц情女王★ 提交于 2019-12-23 09:32:22

问题


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!


回答1:


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



回答2:


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

cd 
rm -rf .gitk



回答3:


Look for the ~/.gitk startup script in your home directory. It will probably contain a line like set geometry(state) normal. Make sure the ~/.gitk file has Unix-style line endings rather than DOS line endings, i.e. LF not LFCR.

You may be able to fix things up by deleting ~/.gitk and allowing it to be recreated when you next run gitk, as noted by ejfresch. ~~~



来源:https://stackoverflow.com/questions/2629292/starting-gitk-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!