在OS X上启动gitk会显示GreaseKit错误

时间:2010-01-28 14:06:50

标签: git macos gitk

当我在OS X(SL)上加载gitk(git版本1.6.5.1)时,我收到有关GreaseKit的错误/警告:

Error loading /Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit: dlopen(/Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit, 265): no suitable image found. Did find: /Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit: GC capability mismatch

gitk确实启动并且似乎正常运行。有没有人见过这个?有什么需要关注的吗?

谢谢,
斯科特

3 个答案:

答案 0 :(得分:2)

您可能需要手动编辑机器上的GreaseKit.bundle,以便只包含在Safari中:

在Finder中导航到/ Users // Library / Application Support / SIMBL / Plugins / GreaseKit.bundle,然后选择打开包。

里面有一个包含Info.plist的Content文件夹。在那里,您可以从以下位置更改SIMBLTargetApplications Lines:

<key>SIMBLTargetApplications</key>
    <array>
        <dict>
            <key>BundleIdentifier</key>
            <string>*</string>
            <key>MaxBundleVersion</key>
            <string>*</string>
            <key>MinBundleVersion</key>
            <string>*</string>
        </dict>
    </array>

<key>SIMBLTargetApplications</key>
    <array>
        <dict>
            <key>BundleIdentifier</key>
            <string>com.apple.Safari</string>
            <key>MaxBundleVersion</key>
            <string>*</string>
            <key>MinBundleVersion</key>
            <string>*</string>
        </dict>
    </array>

您可以添加其他想要使用GreaseKit的应用程序。

或者只是在终端窗口中执行此操作以转到文件:

edit ~/Library/Application\ Support/SIMBL/Plugins/GreaseKit.bundle/Contents/Info.plist

答案 1 :(得分:1)

您的计算机上安装了GreaseKit的任何版本(/Library/Application Support/SIMBL/Plugins/GreaseKit.bundle)与您的gitk二进制文件不兼容GC。这意味着GreaseKit将无法在gitk中使用。

除非你打算在gitk内使用GreaseKit,否则它不是问题(gitk甚至使用WebKit吗?)。可能是GreaseKit加载的唯一原因是因为它的SIMBL配置说要将GreaseKit加载到所有内容中,无论它是否有用。

如果您的计算机上没有人使用GreaseKit,您可以考虑删除它。

答案 2 :(得分:0)

我在同一系统上遇到同样的问题。然而,gitk甚至不会为我开始。

奇怪的是,我发现如果我在而不是的目录中执行gitk实际上是在git控制下,它会启动并抱怨不在存储库中。然后,当我在实际的存储库中执行gitk时,它开始没有抱怨GreaseKit,从那以后一切都很好。

或者您可以使用GitX,它与本机OS X非常相似:http://gitx.frim.nl/