【问题标题】:Starting gitk on OS X displays a GreaseKit error在 OS X 上启动 gitk 显示 GreaseKit 错误
【发布时间】:2011-01-10 10:23:15
【问题描述】:

当我在 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 确实启动并且似乎可以正常工作。有人见过这个吗?有什么需要担心的吗?

谢谢,
斯科特

【问题讨论】:

    标签: git macos gitk


    【解决方案1】:

    您可能希望手动编辑您机器上的 GreaseKit.bundle 以仅包含在 Safari 中:

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

    里面有一个包含 Info.plist 的 Content 文件夹。在那里你改变了最后的 SIMBLTargetApplications 行:

    <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
    

    【讨论】:

    • 我在使用 MacVim 和 gitk 时遇到了同样的问题。这完美地解决了我的问题。谢谢!
    【解决方案2】:

    无论您的机器上安装了什么版本的GreaseKit(如/Library/Application Support/SIMBL/Plugins/GreaseKit.bundle),都与您的gitk 二进制文件不兼容。这意味着GreaseKit 将在gitk 中不可用。

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

    如果您的机器上没有人在使用 GreaseKit,您可以考虑将其删除。

    【讨论】:

      【解决方案3】:

      我在同一个系统上遇到了同样的问题。但是,gitk 对我来说甚至都不会开始。

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

      或者你可以使用 GitX,它与原生 OS X 非常相似:http://gitx.frim.nl/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-06-23
        • 2014-11-05
        • 1970-01-01
        • 2017-02-24
        相关资源
        最近更新 更多