Since this is my first post, I want to start with something very simple yet useful. Usually, our first hurdle when studying a technology or framework is to setup our development environment. Assuming your machine is Linux based, this is how to prepare your machine. For this guide, my operating system is Linux Mint 14 Cinnamon, which is based on Ubuntu 12.10
First install JDK. As of grails 2.2, it is recommended to use Java 6 instead of Java 7. Otherwise you will run into some problems when using this particular version of Grails.
sudo apt-get install openjdk-6-jdkNext is to install Grails by downloading it on their site and not through aptitude. Note that I like downloading all Java related software to my $HOME/java folder.
$ pwd /home/javaguy $ mkdir java $ cd java $ pwd /home/javaguy/java $ wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.2.zip $ unzip grails-2.2.2.zipThe grails software is now in /home/javaguy/java/grails-2.2.2 directory
export GRAILS_HOME=/home/javaguy/java/grails-2.2.2 export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64 export PATH=$PATH:$JAVA_HOME/bin:$GRAILS_HOME/binPlease check your proper JAVA_HOME folder. Mine has a suffix amd64 because I am using 64bit kernel.