Last active
November 14, 2018 07:04
-
-
Save monkstone/2b34b996d40b9eca255fadef5ee6d7dd to your computer and use it in GitHub Desktop.
Install JRuby-9.2.4.0
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
#!/usr/bin/env bash | |
JRUBY_URL="https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.4.0/jruby-dist-9.2.4.0-bin.tar.gz" | |
printf "Downloading JRuby from:-\n%s\n" "$JRUBY_URL" | |
wget "$JRUBY_URL" | |
printf "Change directory to /opt\n" | |
CURRENT=$PWD | |
cd "/opt" | |
sudo tar xzvf "${CURRENT}/jruby-dist-9.2.4.0-bin.tar.gz" | |
sudo update-alternatives --install /usr/bin/jruby jruby /opt/jruby-9.2.4.0/bin/jruby 51 | |
sudo update-alternatives --install /usr/bin/jirb jirb /opt/jruby-9.2.4.0/bin/jirb 51 | |
sudo update-alternatives --install /usr/bin/jgem jgem /opt/jruby-9.2.4.0/bin/jgem 51 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment