Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Last active April 15, 2021 15:36
Show Gist options
  • Save jamesfalkner/03923b9f3837e53294f133aa9c34b4b6 to your computer and use it in GitHub Desktop.
Save jamesfalkner/03923b9f3837e53294f133aa9c34b4b6 to your computer and use it in GitHub Desktop.
#!/bin/bash
GRAAL_VERSION=21.0.0.2
curl -w '' -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${GRAAL_VERSION}/graalvm-ce-java11-linux-amd64-{$GRAAL_VERSION}.tar.gz | \
( cd /usr/local; tar -xvzf - ) && \
export GRAALVM_HOME="/usr/local/graalvm-ce-java11-${GRAAL_VERSION}" && \
export PATH=$GRAALVM_HOME/bin:$PATH && \
$GRAALVM_HOME/bin/gu install native-image && \
echo "export GRAALVM_HOME=$GRAALVM_HOME" >> ~/.bashrc && \
echo "export PATH=$GRAALVM_HOME/bin:\$PATH" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment