Install

sudo apt-get install ruby ruby-dev

Rake

sudo apt-get install rake

Version

To check the version of Ruby (from the command line)::

ruby –version