Ruby Installation

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Ruby Installation

Ruby is a cross platform programming language. It is installed differently on different operating systems.

  • For UNIX like operating system, use your system's package manager.
  • For Windows operating system, use RubyInstaller.
  • For OS X system, use third party tools (rbenv and RVM).

We will install Ruby on Linux Ubuntu using package manager.

Step 1 Choose the package management system which you want to install from the link click here

Step 2 Debian GNU/Linux and Ubuntu use the apt package manager. Use the following command:

  1. sudo apt-get install ruby-full  

Here, by default, the ruby-full package provides Ruby 1.9.3 version which is an old version on Debian and Ubuntu. Ruby installation 1

Step 3 To know your Ruby version installed in your system, use the command,

ruby -v