Grails Installation
Installation from Download
Prerequisites
Before you can start using Grails you will need to install a Java SDK (not just a JRE) and set the JAVA_HOME environment variable to the location of that SDK. The minimum required version of the SDK depends on which version of Grails you are using:
- Java SDK 1.4+ for Grails 1.0.x and 1.1.x
- Java SDK 1.5+ for Grails 1.2 or greater
Steps
- Download the latest Grails release
- Extract the archive into an appropriate location; typically C:\grails on Windows or ~/grails on Unix
- Create a
GRAILS_HOMEenvironment variable that points to the path where you extracted the archive (eg C:\grails on Windows or ~/grails on Unix) - If you have not set the
JAVA_HOMEenvironment variable yet, createJAVA_HOMEenvironment variable that points to the path where you have installed Java - Append a reference to the "bin" directory within the Grails directory to your
PATHvariable (eg%GRAILS_HOME%\binon Windows or$GRAILS_HOME/binon Unix). Note that, for Windows, bothPATHandGRAILS_HOMEmust be defined at the same environment variable level (eg. 'System variables') rather than across environment variable levels (eg.PATHunder 'System variables' andGRAILS_HOMEunder 'User variables') - Type "grails" at the command line, if a help message is displayed you are ready to start using Grails!
- If you get an error message, try to
chmod +xthegrailsscript inside thebindirectory.
Installation from Git (The Version Control Repository)
Prerequisites
In order to start using Grails from Git you need to have the following:
- An installation of Java 1.5 or higher and have set your
JAVA_HOMEvariable to the install location - A Git client
Steps
- Check out Grails from the Git repository
- by running:
git clone git://github.com/grails/grails-core.git - Set the
GRAILS_HOMEenvironment variable to CHECKOUT_LOCATION/grails-core - Add the
$GRAILS_HOME/bindirectory to yourPATHenvironment variable



Comments
Post a Comment