Skip to content

Instantly share code, notes, and snippets.

@monkstone
Last active November 14, 2018 07:06
Show Gist options
  • Save monkstone/2afb9e57430e95547790b0babe2034ea to your computer and use it in GitHub Desktop.
Save monkstone/2afb9e57430e95547790b0babe2034ea to your computer and use it in GitHub Desktop.
Download and extract and install jruby for raspberrypi
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
@monkstone
Copy link
Author

Updated for jruby-9.2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment