Last active
April 15, 2021 15:36
-
-
Save jamesfalkner/03923b9f3837e53294f133aa9c34b4b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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