Last active
November 14, 2018 07:06
-
-
Save monkstone/2afb9e57430e95547790b0babe2034ea to your computer and use it in GitHub Desktop.
Download and extract and install jruby for raspberrypi
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
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 50 | |
sudo update-alternatives --install /usr/bin/jirb jirb /opt/jruby-9.2.4.0/bin/jirb 50 | |
sudo update-alternatives --install /usr/bin/jgem jgem /opt/jruby-9.2.4.0/bin/jgem 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated for jruby-9.2.2.0