MacPorts portFile for Grails

I just submitted a MacPorts Portfile for grails. If it gets approved, it would mean that you can install grails 1.0.3 by typing on your Mac:

sudo port install grails

( assuming you already installed Macports ).

Note: Before you can run grails, you need to add the GRAILS_HOME variable,

i.e. edit .profile and add

export GRAILS_HOME=/opt/local/share/java/grails

If you want to try it out right away, you can download the port file from the ticket submitted to your local machine. ( Ticket )

Here are the steps to run it locally

1. Download the Portfile into a directory under /devel/grails /Users/tomaslin/Desktop/portfiles/devel/grails

( make sure it is under devel / grails ) and named Portfile

2. Add this local repository to your MacPorts sources

In a terminal window, call

     sudo nano /opt/local/etc/macports/sources.conf

add the directory oof your sourcefiles, i.e.

     file:///Users/tomaslin/Desktop/portfiles

3. Save the file.

4. navigate into the directory /portfiles and call ‘portindex’ in a terminal window

5. Call sudo port install grails

6. Edit your environment variables to include grails

i.e. edit .profile and add

export GRAILS_HOME=/opt/local/share/java/grails

3 thoughts on “MacPorts portFile for Grails

  1. Pingback: Nine Lessons from building a Grails / Flex / Flash website « Dump brain here : Flex, AIR, Grails, Groovy, Facebook and all that jazz

  2. Pingback: MacPorts Portfile for Grails 1.0.4 « Dump brain here : Flex, AIR, Grails, Groovy, Facebook and all that jazz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s