23 juin 2014

GVM - the Groovy enVironment Manager is a great tool for managing multiple versions of Groovy, Grails, Gradle, … If you want to use Groovy, Vert.x and Gradle on Beaglebone like me, you have to check/install GVM dependencies.

Generally, Debian distrib. is used with Beaglebone and Raspberry Pi. You can use the latest JDK from Oracle. While the JDK tar.gz file is uncompressed, you can add the following lines on my ~/.profile file


To check the JDK installation, use the java -version command

debian@beaglebone:~$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

GVM is a bash tool and depends only on curl and unzip. Unfortunately, unzip is not installed by default. You’ll have to install these dependencies with a command like

sudo apt-get install curl unzip

You can now install GVM easily with the following command lines.

curl -s get.gvmtool.net | bash
source ~/.gvm/bin/gvm-init.sh

To check the installation, you can use the gvm version command

debian@beaglebone:~$ gvm version
Groovy enVironment Manager 1.3.13

The latest version of Groovy, Gradle and vert.x can be installed with the following commands

gvm install groovy
gvm install vertx
gvm install gradle

The following command tells you which Vert.x versions are installed / available

debian@beaglebone:~$ gvm list vertx

Available Vertx Versions
 > * 2.1

+ - local version
* - installed
> - currently in use

You can check Vert.x installation with the following command

debian@beaglebone:~$ vertx version
2.1 (built 2014-05-27 12:39:02)

And now, you are ready to use Vert.x on Beaglebone :-)