Skip to content
Shannon Skipper edited this page Nov 22, 2013 · 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-7-jdk
RedHat / Fedora
sudo yum install -y java-1.7.0-openjdk
Arch Linux
sudo pacman -S jdk7-openjdk
OS X Install Oracle JDK

Install

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

      chruby jruby
      gem install jruby-launcher
    
Clone this wiki locally