Skip to content

Installation: Ruby 2.0 & rubygems

Mark Bussey edited this page Feb 28, 2014 · 18 revisions

Notes

Ruby is the language of HydraDAM. Rubygems gives you access to the gems (dependencies, aka other people's code) HydraDAM needs.

Steps

Ruby:
Especially on Ubuntu machines, Ruby 2.0 may be preinstalled. To verify which is installed, enter the command which ruby in the terminal window. This should return /usr/local/bin/ruby. Additionally, entering ruby -v should return ruby 2.0.0-p353.

If you don't have Ruby 2.0 installed, install it from source by copying and pasting the block of text below:

cd /opt/install
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p353.tar.gz  
tar xvzf ruby-2.0.0-p353.tar.gz  
cd ruby-2.0.0-p353  
./configure  
make  
sudo make install  
cd /opt

Verification Steps

You must have Ruby version 2.0.x and Rubygems version 2.x installed to complete the rest of the instructions. To verify that the correct versions are installed, use the following commands.

  1. which ruby
    The system should return /usr/local/bin/ruby

  2. ruby -v
    The system should return ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]

  3. which gem
    The system should return /usr/local/bin/gem

  4. gem -v
    The system should return 2.0.14

If you get an error message or a version older than 2.x, go to the Troubleshooting Guide.

Next Step

Proceed to Install Java 7 or return to the Overview page.

Clone this wiki locally