How to install ruby?

I am pretty new to ruby world and I don't know about installing it. Viewing methods from blogs with google search but feeling confuse.

Could somebody help me to setup ruby in my Ubuntu 13.10?


Solution 1:

Run these commands on terminal to install Ruby 2.0.

sudo apt-get update
sudo apt-get install ruby2.0 ruby2.0-dev

To check the ruby version,run this

ruby2.0 --version