Ubuntu 为什么我的Tk应用程序会出现“错误”;未知颜色名称“白色”;?

Ubuntu 为什么我的Tk应用程序会出现“错误”;未知颜色名称“白色”;?,ubuntu,tcl,xorg,Ubuntu,Tcl,Xorg,我刚刚在ubuntu机器上安装了tkdiff,当我尝试运行该程序时,我得到以下错误: actual font: -family {DejaVu Sans Mono} -size -12 -weight normal -slant roman -underline 0 -overstrike 0 Error in startup script: unknown color name "white" (processing "-foreground" option) invoked

我刚刚在ubuntu机器上安装了tkdiff,当我尝试运行该程序时,我得到以下错误:

 actual font: -family {DejaVu Sans Mono} -size -12 -weight normal -slant roman -underline 0 -overstrike 0
Error in startup script: unknown color name "white"
    (processing "-foreground" option)
    invoked from within
"text $w(LeftCB) -height 0 -padx 0 -highlightthickness 0 -wrap none  -foreground white -width 1 -borderwidth 0 -yscrollcommand  [list vscroll-sync "$w(..."
    (procedure "build-client" line 81)
版本:

  • Ubuntu 9.04
  • tkdiff???(找不到版本号)
  • 愿望8.5

有人知道我该怎么解决这个问题吗?我可以进入tkdiff脚本并将白色更改为颜色值,但在我看来,这似乎是在修复症状,而不是解决真正的问题。换句话说,我的tkdiff或wish和ubuntu版本是否有问题?

一些谷歌研究表明,xorg.conf文件(可能在/etc/X11中)中的“rgbpath”定义可能有问题。我要么确保它的值是正确的,要么可能一起删除该行


杰夫

感谢谷歌的帮助。我试过了,但没有成功。我到处搜索rgbpath设置,但在任何地方都找不到。如果你能把找到的链接发给我,我可以试着调试一下。你有“xorg.conf”文件吗?如果是这样的话,很可能就是其中的违规设置。我手头没有参考链接,否则我会发布它们。。。JeffI有,但没有提到rgbpath。我还浏览了一下,发现没有提到rgbpath。