How to install ruby on Ubuntu 10.04

 
 command: 
 sudo apt-get install ruby-full
 
open up a shell and type irb and hit enter 
then u will geta prompt like this
irb(main):001:0>
 
first program in ruby

Hello world in ruby: 
 irb(main):001:0> "Hello World"=> "Hello World"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s