Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Grails on Linux Ubuntu LTS?

Tags:

grails

ubuntu

I have Linux Ubuntu 14.04 LTS. I wanted to install Grails and I have found informations on how to install it on Ubuntu 14.04 VPS here. So I am a little confused.

  • What are the difference between the two versions, LTS and VPS?
  • Does it matter if I do not have VPS version?
  • Can I install Grails on my Ubuntu? If yes, how?
like image 865
sop Avatar asked Nov 28 '22 13:11

sop


2 Answers

A very simple way on Linux/Unix OS is to use the GVM Tool.

After installing the GVM tools you simply run

$ gvm install grails 2.4.3

in order to install Grails 2.4.3

UPDATE: Meanwhile gvm was renamed to sdkman.

Install sdkman

$ curl -s "https://get.sdkman.io" | bash

In order you want to continue working in the same terminal window execute

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

To install the latest version of Grails simply run

$ sdk install grails 

or if need a specific version you can run

$ sdk install grails 2.4.3
like image 188
saw303 Avatar answered Nov 30 '22 03:11

saw303


You may try these steps. But this is just a guess, am not much sure about LTS and VPS

  • download grails-{desired version} zip file
  • extract it into any folder.
  • edit .bashrc in home folder such that

    JAVA_HOME=/path/to/java/jdk1.6.0_25-64/

    export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH

    export GRAILS_HOME=/path/to/grails/grails-2.4.2/

    export PATH="$PATH:$GRAILS_HOME/bin"

  • try to run grails command in terminal

like image 22
JayKay Avatar answered Nov 30 '22 03:11

JayKay