Well I am interested in learning about programming, and learning codes. So I installed Ruby, but the problem is, I'm following the directions in this 1. Numbers tutorial and it says command line, now I'm no computer genius, but I thought I knew enough lol. Sooo I'm wondering what that is.
And another thing, is that I have Vista home premium 64bit, so I open the program Run, and typed in run, and the new file name that I made in Ruby. In the tutorial is says a 3 should appear, but all I get is this little black box with some words on it, but I can't tell you what those words are because that black box appears and disappears in like a second.
Thanks
Command line
Started by Papi, Nov 04 2009 12:38 PM
4 replies to this topic
#1
Posted 04 November 2009 - 12:38 PM
|
|
|
#2
Guest_Jordan_*
Posted 04 November 2009 - 03:39 PM
Guest_Jordan_*
The command line would be "cmd" in windows or a terminal/shell on Linux/Unix/Mac. On vista type cmd into the Run box. Once there, execute your commands. If the ruby executable is in your path, it will run.
#3
Posted 04 November 2009 - 05:33 PM
There is an Interactive Ruby Console (irb).
Once installed, you can run it from the menu
and then type all the commands you want into it.
Once installed, you can run it from the menu
and then type all the commands you want into it.
#4
Posted 07 November 2009 - 05:22 PM
Thanks guys,
Now I have this problem where I enter ruby calc.rb in the cmd prompt, but the 3 that's supposed to appear never does. I enter the command, a cmd prompt opens up, and then disappears again, in like a second. But in the tutorial it says you should see a 3, I never do.
Now I have this problem where I enter ruby calc.rb in the cmd prompt, but the 3 that's supposed to appear never does. I enter the command, a cmd prompt opens up, and then disappears again, in like a second. But in the tutorial it says you should see a 3, I never do.
#5
Posted 07 November 2009 - 05:47 PM
run your program with an open command prompt. You should see the output then.


Sign In
Create Account

Back to top









