gitk无法在Mac上启动:未知颜色名称“石灰" [英] gitk will not start on Mac: unknown color name "lime"

查看:138
本文介绍了gitk无法在Mac上启动:未知颜色名称“石灰"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过brew install git在Mac上安装了git.当我尝试启动gitk时,出现以下错误:

I've installed git on a mac via brew install git. When I try to start gitk I get the following error:

Error in startup script: unknown color name "lime"
    (processing "-fore" option)
    invoked from within
"$ctext tag conf m2 -fore [lindex $mergecolors 2]"
    (procedure "makewindow" line 347)
    invoked from within
"makewindow"
    (file "/usr/local/bin/gitk" line 12434)

我的Mac似乎没有名为lime的颜色.

It appears that my Mac doesn't have a color named lime.

我可以在环境中添加石灰颜色吗,还是有更好的解决方法?

Can I add a lime color to the environment, or is there a better fix?

git版本是2.7.0,并且Mac运行的是Yosemite 10.10.5

The git version is 2.7.0, and the Mac is running Yosemite 10.10.5

推荐答案

您可以通过运行wish并使用命令info patchlevel来检查Tcl/Tk的版本.看来git 2.7.0,Tcl/Tk 8.5.9和OS X 10.11 El Capitan不能很好地协同工作.

You can check your version of Tcl/Tk by running wish and using the command info patchlevel. It appears that git 2.7.0, Tcl/Tk 8.5.9, and OS X 10.11 El Capitan do not work well together.

我通过安装8.6.4的brew cask install tcl解决了这个问题,并且gitk现在可以正常工作.

I solved this problem by doing brew cask install tcl, which installed 8.6.4, and gitk works now.

这篇关于gitk无法在Mac上启动:未知颜色名称“石灰"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆