I\'m pretty much entirely new to programming, so bear with me. I am on a Macbook Pro running 10.6.6.
At the beginning of the \"Learn to Program\" tutorial are these dir
If you have named your file "Calc.rb" you'll need to run ruby Calc.rb
(capital "C").
Also make sure that you're navigating the /Desktop
directory — e.g. type
cd ~/Desktop
ruby Calc.rb
You can use ls
to get a list of all the files in the current directory. You could use that to see if the file you're trying to execute actually exists.