12月 032011
 

■環境
Mac OS X 10.7.2

■導入手順
ブラウザからモジュール(以下では、groovy-binary-1.8.4.zip)をdownload。
Groovy – Home
http://groovy.codehaus.org/


$ sudo mkdir -p /Library/Frameworks/Groovy.framework/Versions
$ cd ~/Downloads
$ unzip groovy-binary-1.8.4.zip
$ sudo mv groovy-1.8.4 /Library/Frameworks/Groovy.framework/Versions/1.8.4

$ cd /Library/Frameworks/Groovy.framework/Versions
$ sudo ln -s 1.8.4 Current

$ cd /Library/Frameworks/Groovy.framework
$ sudo ln -s Versions/Current Home

$ sudo mkdir /Library/Groovy
$ cd /Library/Groovy
$ sudo ln -s /Library/Frameworks/Groovy.framework/Home Home

$ vi ~/.profile
export JAVA_HOME=/Library/Java/Home
export PATH=$JAVA_HOME/bin:$PATH

export GROOVY_HOME=/Library/Groovy/Home
export PATH=$PATH:$GROOVY_HOME/bin

$ source ~/.profile

$ java -version
$ groovy -v

Sorry, the comment form is closed at this time.