Installing a Grails Development Environment on OS X


Updated for Grails 2.1.1
Video #4: In this Grails Example, we will set up our development environment on an OS X system.

This first video shows you how to install Grails and Java on OS X. To install Grails, you will need a Java Developers Kit (www.apple.com), and the Grails libraries (www.grails.org). This video will show you how to download and install both. It then shows how to set up the appropriate Bash profile to allow you to run Grails commands from the terminal.

Video #5: In the second video, you learn how to install an Integrated Development Environment (IDE) based on Eclipse called the Groovy/Grails Tool Suite. This tool is pre-configured for Groovy and Grails to give you features such as syntax highlighting and code completion. The video shows you how to install it and configure it for the Grails 2.1.1 environment that you installed in the previous video.

25 thoughts on “Installing a Grails Development Environment on OS X

  1. hola, excelente video! gracias por la aportación, podrias hacerlo en español o con subtítulos por que no le entiendo muy bien… cuando haces el grails-2.2.2 y enseña a configurarlo con mysql por favor

  2. Just in case you were curious, vim is Vi iMproved. Its an extended version of VI, runs the same commands, but has slight modifications to it.

  3. Very nice, thank you. But, I wouldn’t set GRAILS_HOME in the .bash_profile to a specific grails version. Instead I would create a soft link in the grails directory that points to the current used version of grails, like this:

    ln -s /users//grails/grails-2.2.0 /users//grails/grails

    The main advantage is, in case of a new grails version, you only need to update the soft link and don’t need to update your .bash_profile or other files.

  4. Love your videos. I tried installing Groovy/Grails Tools Suite (Version: 3.1.0.RELEASE
    Build Id: 201210061306) on Mac OS X 10.6.8(not Mountain Lion) but keep getting this error:
    Error Error loading plugin manager: Could not create a new instance of class [ResourcesGrailsPlugin]! (Use –stacktrace to see the full trace)

    any ideas??
    Thanks

  5. Love the video. I was wondering if you have to have Mountain Lion to run the newer version of Grails. I am running on Snow Leopard (yea I am behind) and when I follow the video exactly and type “grails -version” in my terminal, I get “command not found”.

    • My first videos were on Snow Lion and it worked fine. The message you are getting is because your path must not be set up. Try to change directories into the bin directory under where Grails is installed. If the commands work there, you just need to add the path to your profile. I think MacOS stores the bash profile in a different place than Mountain Lion though.

  6. my mac does not show whether its 32 bit or 64 bit… at least not the you showed in the video…

    System Software Overview:

    System Version: OS X 10.8 (12A269)
    Kernel Version: Darwin 12.0.0
    Boot Volume: Macintosh HD
    Boot Mode: Normal
    Computer Name: Vikram’s Mac mini
    User Name: Shantanu Nanoty (snanoty)
    Secure Virtual Memory: Enabled
    Time since boot: 5:13
    this is what is displayed..

    • Thanks for the input. I just updated the videos for Grails 2.1 and include that now. Also, if you are following the course and stay in the Eclipse environment, the IDE takes care of those.

  7. Howdy. Very nice website!! Man .. Excellent .. Amazing .. I’ll bookmark your website and take the feeds additionally…I’m glad to find so much useful information here in the post. Thank you for sharing..

  8. Excuse me, but I attempted to email you regarding an issue on your site but the given email address did not work. Is there some other place I could get in touch with you?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>