Quick Way to Install Ruby on Your Computer

2:46 PM 1 Comments

       We have discussed fascinating features of Ruby and why is Ruby favourite of many developers. It's time to write your very first Ruby program. Let's get started with Ruby.

Quick Way to Install Ruby on Your Computer

Install Ruby on Ubuntu 14.04

Open up the Terminal by holding Ctrl+Alt+T.
Ubuntu uses the apt package manager. You can use it like this:

$ sudo apt-get install ruby-full

Install on Mac OS X

     OS X Yosemite and Mavericks have pre-installed Ruby 2.0.  If you are using an older version of Mac OS X use the homebrew  package manager.

$ brew install ruby

Install on Windows 7/8

If you are on Windows platform, use the installer which helps to install ruby on windows .

Check the Ruby version 

Open up the terminal or Commands prompt (Windows - Go to Ruby folder >bin)

$ruby -v

Check the Interactive Ruby Shell (IRB)

IRB is an interactive shell, IRB allows the execution of Ruby commands with quick response, We can say it as a real-time tool for executing Ruby commands.

puts "Welcome to IRB"

Done! Next lesson we will write a ruby program.

Hi Nikinmon SK i like to share my knowledge !


Werner Ebner said...

I am not sure where you are getting your information, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic information I was looking for this info for my mission. gmail.com login