heatherblairs
heatherblairs

Reputation: 161

Running Ruby programs in Atom

I installed Atom and the script package, wrote a Ruby test program, saved it as hello.rb, pressed ctrl + shift + b to execute, and got the error message 'ruby' is not recognized as an internal or external command, operable program or batch file. I thought the script package included Ruby and multiple other grammars. Is there something else I need to do before I can run programs?

Upvotes: 7

Views: 7742

Answers (1)

Matt Bogen
Matt Bogen

Reputation: 76

I don't run my code from Atom, but I think a likely cause of your problem is not having Ruby itself installed on your machine. Macs have Ruby installed from the factory, but Windows machines typically don't.

Check out http://rubyinstaller.org/. It's a simple tool for installing Ruby in a Windows environment.

Upvotes: 6

Related Questions