sop
sop

Reputation: 3625

How to install Grails on Linux Ubuntu LTS?

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.

Upvotes: 4

Views: 14152

Answers (3)

saw303
saw303

Reputation: 9072

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

Upvotes: 19

cfrick
cfrick

Reputation: 37033

VPS stands for Virtual Private Server in general (no special Ubuntu version) and LTS for Long Time Support added to a version number of Ubuntu to annotate a longer livetime (e.g. making this versions more suitable for servers). So these letters have not much influence on your way of installing Grails. The instructions there (installing JDK from OS and using sdkman (formerly GVM)) are sound advice to run Grails.

Upvotes: 1

JiniKJohny
JiniKJohny

Reputation: 1182

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

Upvotes: 8

Related Questions