JRuby

Alex Coles edited this page Oct 23, 2016 · 41 revisions

JRuby is a Ruby implementation using the Java Virtual Machine (JVM).

Requirements

Operating System Command
Debian / Ubuntu
sudo apt-get install -y openjdk-8-jdk
RedHat / Fedora
sudo yum install -y java-1.8.0-openjdk
Arch Linux
sudo pacman -S jdk8-openjdk
OS X Install Oracle JDK

Install

wget https://s3.amazonaws.com/jruby.org/downloads/9.1.5.0/jruby-bin-9.1.5.0.tar.gz
sudo mkdir -p /opt/rubies/
sudo tar -xzvf jruby-bin-9.1.5.0.tar.gz -C /opt/rubies/
sudo ln -s jruby /opt/rubies/jruby-9.1.5.0/bin/ruby
  • Note: For improved start-up time install jruby-launcher:

      chruby jruby
      gem install jruby-launcher