I\'ve installed Ruby 1.93 in my windows 7 PC using Ruby 1.9.3-p194 one click installer. I can use ruby command to interpret files, but when I type irb
ruby
irb
I got the solution from Pete's comment. I have Cygwin installed in my computer which was causing the problem (Not sure why). I have just typed this in the command line: set HOME= and irb started working!
Cygwin
set HOME=
You can also see this link.