Ruby: irb doesn't work on Windows

耗尽温柔 提交于 2019-12-01 09:39:50

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!

You can also see this link.

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!