2

我需要有关 TextMate 的帮助。我安装了它并想在其中编译 Groovy(这似乎很方便,特别是对于尝试的东西)。我安装了 Groovy 包,但它不起作用。它抱怨:

Couldn't find /Applications/groovy-1.8.4/bin

If you have installed groovy, then you need to either update your PATH or set the 
TM_GROOVY shell variable (e.g. in Preferences / Advanced)

Locations searched:

/Users/meir/Library/Application Support/TextMate/Pristine Copy/Bundles/Groovy.tmbundle/Suppor
/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/Users/meir/Library/Application Support/TextMate/Pristine Copy/Bundles/Groovy.tmbundle/Support
/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/usr/bin 
/bin
/usr/sbin
/sbin
/Applications/groovy-1.8.4/bin
/Applications/grails-1.3.7/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin

我试图做所有事情。我在设置中将路径(/Applications/groovy-1.8.4/bin)添加到 TM_GROOVY,在相同设置中添加到 PATH 变量,我什至将它添加到系统路径中,但根本没有帮助。

请帮忙。

4

1 回答 1

7

要清楚,您应该单击 TextMate > Preferences > Advanced > Shell Variables

然后添加一个名为“TM_GROOVY”的变量,其值为“/Applications/groovy-1.8.4/bin/groovy”

不知道为什么,但就我而言,我实际上明确指定了“.../groovy”。

于 2011-12-26T17:06:11.793 回答