I just installed Ruby 2.0.0-p247 on Windows 7 and I wrote a program called calc.rb which contains only one expression: puts 1 + 2. In my tutorial book it says to run it in the command line by typing ruby calc.rb, but when I try to run it it comes back with this message:
ruby: No such file or directory -- calc.rb (LoadError)
Why?
rubybinary has to be in yourPATHPATH, then Ruby wouldn't execute. In this case, Ruby is executing and reporting that it cannot find the filecalc.rbdir calc.rbor whatever the Windows/DOS command line command line is for listing a file?