Skip to content

Instantly share code, notes, and snippets.

@teebu
Forked from kainam00/jruby-amazon-linux.bash
Created March 3, 2016 04:32
Show Gist options
  • Save teebu/e113c2e5d2fd7cdffa7d to your computer and use it in GitHub Desktop.
Save teebu/e113c2e5d2fd7cdffa7d to your computer and use it in GitHub Desktop.
Install jruby on Amazon Linux
#!/bin/bash
# Install prerequisites
yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git
# Import key
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
# Install RVM
curl -sSL https://get.rvm.io | bash -s stable --ruby
# Set up RVM shell
source /usr/local/rvm/scripts/rvm
# Install jruby
rvm install jruby
# Confirm
jruby -v
# Should return something like this -
# jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on Java HotSpot(TM) 64-Bit Server VM 1.6.0_29-b11 +jit [linux-amd64]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment