How to install Groovy on a Banana Pi or Raspberry Pi

The Raspberry or Banana Pi have already pre-installed Python.
If you like to stay with Groovy on these nice little devices, here are the instructions to install Groovy.
GVM makes the whole process very easy and convenient.

Open a terminal window and use these commands:

curl -s get.gvmtool.net > installGroovy.sh
chmod u+x installGroovy.sh
installGroovy.sh
source “$HOME/.gvm/bin/gvm-init.sh”
gvm install groovy

This will download and install the latest Groovy version.
Check the installed version:

groovy -version
Groovy Version: 2.4.2 JVM: 1.8.0 Vendor: Oracle Corporation OS: Linux

Happy Groovy coding on your Banana Pi,
Johannes

Advertisements
This entry was posted in Development, Groovy and tagged , , , , . Bookmark the permalink.

2 Responses to How to install Groovy on a Banana Pi or Raspberry Pi

  1. Georg says:

    Broken link: get.gvmtool.net doesn’t exist any more. But following the instructions on http://groovy-lang.org/install.html works well. I just got a SpringBoot/Groovy/… Webapp running on a Raspi 3 this way. Enjoy!

  2. Johanus says:

    Actually, ‘gvmtool’ was merely renamed to ‘sdkman’. So installing groovy with ‘sdk’ is virtually the same as it was with ‘gvm’. :-]

    $ curl -s get.sdkman.io | bash
    $ source “$HOME/.sdkman/bin/sdkman-init.sh”
    $ sdk install groovy

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