运行 Ruby 个 Atom 程序

Running Ruby programs in Atom

我安装了Atom和脚本包,写了一个Ruby测试程序,保存为hello.rb,按下ctrl + shift + b 执行,得到错误信息 'ruby' is not recognized as an internal or external command, operable program or batch file. 我以为脚本包中包含 Ruby 和其他多个语法。在我可以 运行 程序之前我还需要做些什么吗?

我没有 运行 来自 Atom 的代码,但我认为您的问题的一个可能原因是您的机器上没有安装 Ruby 本身。 Mac 出厂时已安装 Ruby,但 Windows 机器通常没有。

查看 http://rubyinstaller.org/。这是在 Windows 环境中安装 Ruby 的简单工具。