Tuesday, November 27, 2012

Install Grails in MacOS

To install Grails in MacOS we need
1. Java install in MacOS
2. Download Grails and add enviroment for Grails and Java
3. Testing

Now we start
1. Install java in MacOS
Go to Launchpad in bottom menu of Mac and search Java you will Java Preference and install it
Or you go to top menu of Mac choose item menu Go -> Utilites and search Java Preference.

Install it

2. Down load grails
Please go http://grails.org/ to lastest version of grails. You extract to a folder that you want run grails

Create variable environment by terminal.
sudo su
vim .bash_profile

Add list code

export GRAILS_HOME=/Users/kissconcept/Software/grails-2.1.1
export PATH=$PATH:$GRAILS_HOME/bin
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$PATH:$JAVA_HOME/bin

After run command line grails

Now you finish install grails

3. Testing
You can test by command line
java -version
grails -version


Good luck to you

No comments:

Post a Comment