起始gitk错误

问题描述 投票:6回答:4

当我加载gitk时,出现关于参数的错误

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)

有人知道解决方案吗?我正在Mac OS X 10.6.3上工作

thx!

git macos gitk
4个回答
3
投票

如本blog post中所述:

使用Macport安装mercurial结果安装了一堆堆相依的库,结果造成gitk无法执行

Err ...我的意思是:

使用Macport安装的结果,Mercurial安装了库的一堆依赖项,导致gitk无法执行。

Gitk将使用错误的tk库版本。

问题是第一次安装已使用以下命令修改了.bashrc

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

修改原始路径(/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

尝试在.bashrc中代替:

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

4
投票

我在Lion遇到了这个问题。这是我的解决方案:

cd 
rm -rf .gitk

3
投票

在主目录中查找〜/ .gitk启动脚本。它可能包含类似set geometry(state) normal的行。确保〜/ .gitk文件具有Unix样式的行尾而不是DOS行尾,即LF而不是LFCR。

您可以通过删除〜/ .gitk并在下次运行gitk时重新创建它来进行修复,如ejfresch所述。~~~


0
投票

我最近在Ubuntu 18.04上遇到了这个问题。

我删除了主目录中的.config / git / gitk,一切正常。

© www.soinside.com 2019 - 2024. All rights reserved.