Ruby Installation - Unix
Here are the steps to be followed to install Ruby on a Unix machine:
NOTE: Before proceeding, make sure you have root privilege.
Debian GNU/Linux and Ubuntu use the apt package manager. The ruby-full package provides Ruby 1.9.3, which is an old stable release. You can use it like this:
$ sudo apt-get install ruby-full
After installation, make sure everything is working fine by issuing the following command on the command-line:
$ruby -v ruby 1.6.7 (2002-06-04) [i386-netbsd]
If everything is fine, this should output the version of the installed Ruby interpreter as shown above. You may have installed different version, so it will display a different version.
Using yum to install Ruby:
If your computer is connected to the Internet then easiest way to install ruby or any other other RPM is using yum utility. Give following command at command prompt and you will find ruby gets installed on your computer.
$ yum install ruby