Ruby on WindowsXP Pro SP2
First, go to rubyinstaller.rubyforge.org and select the download link and get the stable release, 182-15.exe as of this writing.

Ruby Installer Download Link

Once the installer is downloaded, run it.

Ruby Installer Downloaded run

Of course you agree, don't we always?

Agree to all

Let's install everything.

Agree to all

I went with the default install path.

Default install path

Click finish and now we have it.

Done

Next, let's look at your install. Open a command prompt by selecting Start | Run and type in CMD and select the OK button.

cmd prompt

At the prompt type: ruby -v and hit Enter. You should see that you now have version 1.8.2.

Get Ruby version

From here we can have a little fun. Type irb --simple-prompt and let's start interactive Ruby with a simple prompt.

Ruby simple prompt

Instead of the usual Hello World app, we will expand our horizons and do a Hello Solar System example here. At the prompt type the following:
class SayIt
def Hey(planet)
return "Hey there, #{planet}."
end
end
You will then get a nil return as nothing will be returned yet. Finally, invoke the class by typing the following at the prompt:
SayIt.new.Hey("Saturn")
You will then get the following returned: "Hey there, Saturn." Here you created a class named SayIt with a method named Hey that is passed a parameter and returns a string using that input parameter. See below.

SayIt Ruby class

Next article, will get Rails working on Windows XP Pro.

Valid XHTML 1.0 Transitional