Installing Groovy/Grails on MAC OSX Snow Leopard
Do this through terminal:
Install Groovy:
$ sudo mv groovy-1.x.x /usr/share
$ cd /usr/share
$ sudo chmod 0755 groovy-1.x.x/bin/*
$ sudo ln -s groovy-1.x.x groovy
Install Grails:
$ sudo mv grails-1.x.x /usr/share
$ cd /usr/share
$ sudo chmod 0755 grails-1.x.x/bin/*
$ sudo ln -s grails-1.x.x grails
Edit or create your ~/.profile file:
To create a .profile use the command pico .profile
export GROOVY_HOME=/usr/share/groovy
export GRAILS_HOME=/usr/share/grails
export PATH=${PATH}:$GROOVY_HOME/bin
export PATH=${PATH}:$GRAILS_HOME/bin
Reload your profile:
$ . ~/.profile
or
$ source ~/.profile.
No comments:
Post a Comment