Git Gui没有加载

时间:2014-05-20 14:15:52

标签: git version-control

我正在尝试启动它成功的Git Gui,但是当我做Repository时 - >可视化所有分支历史记录,没有任何加载,我在终端中收到以下错误(见下文)。我想知道在不影响我的git存储库/历史记录等的情况下重新安装git gui是否安全?

干杯

Error in startup script: 2014-05-20 15:11:43.764 osascript[20136:903] Error loading    /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:   dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types,  262): no suitable image found.  Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:     no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
while executing
"exec osascript -e [format {
      tell application "System Events"
        set frontmost of processes whose unix id is %d to true
      end te..."
    invoked from within
"if {[tk windowingsystem] eq "aqua"} {
exec osascript -e [format {
    tell application "System Events"
        set frontmost of processes ..."
(file "/opt/local/bin/gitk" line 11755)
invoked from within
"source $AppMain_source"
(file "/opt/local/share/git-gui/lib/Git Gui.app/Contents/Resources/Scripts/AppMain.tcl"    line 24)

经过进一步的研究和对上述问题的回顾,即使在全新安装Git之后仍然会遇到错误。但是在更新Macports之后,问题就解决了!

感谢您的帮助。

2 个答案:

答案 0 :(得分:1)

重新安装git或git-gui不会改变现有的存储库。无论如何他们应该如何?

答案 1 :(得分:1)

如果在安装Adobe CS3或CS4时安装了程序,则会出现此问题。

我解决的方法是更新到此处找到的较新版本的Adobe单位类型:

http://kb2.adobe.com/cps/516/cpsid_51615/attachments/Adobe_Unit_Types.osax.zip

安装:

cd /Library/ScriptingAdditions

#backup the original file
sudo cp -r Adobe\ Unit\ Types.osax{,.bak}
sudo cp -r /Path/to/your/new/Adobe\ Unit\ Types.osax .

我从这里得到了这些说明:

https://blog.iefdev.se/2015/01/gui-for-git-with-gitk-in-os-x/