Ruby: irb doesn't work on Windows

前端 未结 3 1304
轻奢々
轻奢々 2021-01-15 03:30

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

3条回答
  •  迷失自我
    2021-01-15 04:02

    I'd suggest to use DevKit. I have 64-bit Windows 7 and ruby 1.9.3-p125, and everything works smoothly with DevKit.

    d:\>systeminfo | findstr /B /C:"OS Name"
    OS Name:                   Microsoft Windows 7 Enterprise
    
    d:\>ruby -v
    ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
    
    d:\>irb
    irb(main):001:0> 2+2
    => 4
    irb(main):002:0> exit
    

提交回复
热议问题