Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 224
heatherblairs Avatar asked Aug 24 '15 00:08

heatherblairs


1 Answers

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.

like image 197
Matt Bogen Avatar answered Oct 06 '22 06:10

Matt Bogen