Cygwin gitk问题 [英] Cygwin gitk issue

查看:135
本文介绍了Cygwin gitk问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在cygwin设置中安装了所有X11软件包,现在 由于看不见gitk而产生了巨大的烦人错误.一切都过去了 直到我安装此东西之前,它的工作情况都非常好.

I have recently installed all of the X11 packages in the cygwin setup and now have is massive annoying error with not being able to see gitk. Everything was working perfectly well until I installed this stuff.

在出现此问题之前,我并没有真正注意到已经完成了我的任何配置 刚开始xwinserver到我的分支并键入gitk,一切 出现了. 现在,我必须放入显示器,因为它声称未设置显示器.我出口我的 显示设置通过运行xclock检查是否正确设置 出现.然后我得到了问题:

Before I had this issue I didn't really note done any of the configuration I merely started xwinserver went to my branch and typed gitk and everything appeared. Now I have to put in my display as it claims the display is not set. I export my display settings check that it is set properly by running xclock which does appear. Then I get the issue:


1 [main] wish8.5 3436 child_info_fork::abort: data segment start: parent(0x4CF000) != child(0x67F000)
Error in startup script: unknown color name "SystemButtonFace"
while executing
"winfo rgb . $c"
(procedure "setui" line 3)
invoked from within
"setui $uicolor"
(file "C:\cygwin\bin\gitk" line 11504)

不知道这是什么.我看过几个相关的问题,但没有 答案.

Not got a clue what this is. I have seen a couple of relevant questions but no answers.

注意:我使用的是Windows 7 64位操作系统,并且使用的是Bash shell

Notes: I am using Windows 7 64 bit and using a Bash shell

更新:我仍然遇到完全相同的错误.这真令人沮丧!一世 可能只是下载Debian

Update: I am still getting exactly the same error. This is really frustrating! I may just download Debian

推荐答案

从今天起,我能够在Win 7 64 Bit上使用以下版本来使gitk正常工作:

I was able to get gitk working as of today with the following versions on Win 7 64 Bit :

$ cygcheck -c cygwin git gitk tcl tcl-tk
Cygwin Package Information
Package              Version        Status
cygwin               1.7.10-1       OK
git                  1.7.9-1        OK
gitk                 1.7.9-1        OK
tcl                  8.5.11-1       OK
tcl-tk               8.5.11-1       OK

最有价值的链接是aap发布的链接.那导致我执行了所有其他步骤.

The most valuable link was the one posted by aap. That led me to all the other steps.

要修复前叉失败,请遵循 Cygwin常见问题解答中的链接. 我遵循的步骤如下:

To fix the fork failures follow this link from Cygwin FAQ. The steps I followed were as follows:

  1. 开始->运行-> ash.exe-> /bin/rebaseall (我运行该命令时没有输出)

  1. Start -> Run -> ash.exe -> /bin/rebaseall (There was no output when I ran that command)

出现分叉失败的原因之一是存在防病毒/防火墙/间谍软件清洁程序软件.

就我而言, BLODA 软件被列为造成这种情况的原因分支失败的原因是我在工作电脑上遇到的McAfee.解决方法是将Cygwin目录移至McAfee OAS排除的文件夹内,并创建指向旧位置的符号链接,如下所示:
mklink /D C:\Cygwin C:\Dev\Cygwin

C:\ Dev 是排除的文件夹

可以使用Viruscan控制台配置排除的文件夹.要测试是否排除了当前的Cygwin目录,请参见.

One of the reasons why you might get fork failures is the presence of Antivirus/Firewall/Spyware-cleaner softwares.

In my case the BLODA softwares listed as reasons for the fork failures was McAfee which I have on my work pc. The fix was to move the Cygwin directory inside a folder excluded by McAfee's OAS and create a symbolic link to the old location like so:
mklink /D C:\Cygwin C:\Dev\Cygwin

C:\Dev is the excluded folder

The folder exclusions can be configured using the Viruscan Console. To test whether your current Cygwin directory is excluded see this.

启动GITK

  •     方法1
       
  •     Method 1
        
  1. 在Cygwin控制台中:
    startx&

  2. 弹出窗口的标题必须用于在Cygwin中设置DISPLAY env变量,如下所示:
    标题: Cygwin/X:1.0 ,然后执行export DISPLAY=localhost:1.0
    标题: Cygwin/X:0.0 ,然后执行export DISPLAY=localhost:0.0

  3. 最后像这样启动gitk:
    gitk&

  4. 我最终得到的是:

  1. In Cygwin Console :
    startx&

  2. The title of the window that pops up must be used to set the DISPLAY env variable in Cygwin like so:
    Title : Cygwin/X:1.0, then do export DISPLAY=localhost:1.0
    Title : Cygwin/X:0.0, then do export DISPLAY=localhost:0.0

  3. Finally start gitk like so :
    gitk&

  4. What I ended up with was this :


  •     方法2
       


  •     Method 2
        

    1. 创建具有以下内容的文件〜/.startxwinrc :
      gitk&
    2. 然后运行以下命令:
      startxwin>/dev/null 2>&1
    3. 我最终看到了一个gitk窗口,该窗口看起来与aap提到的整个需要X"事件发生之前的窗口一样:

    1. Create a file ~/.startxwinrc with the following contents:
      gitk&
    2. Then run the following command:
      startxwin >/dev/null 2>&1
    3. I ended up with a gitk window which looks exactly like the one before the whole 'require X' thing mentioned by aap happened :




  • 这篇关于Cygwin gitk问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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