Skip to content
Shannon Skipper edited this page Apr 11, 2019 · 46 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
macOS
brew cask install java

Install

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

      chruby jruby
      gem install jruby-launcher
    
Clone this wiki locally