From: Luis Lavena Date: 2011-11-19T10:31:46+09:00 Subject: Re: Newbie - cmd question Otto Dydakt wrote in post #1032638: > I've literally JUST downloaded ruby from rubyinstaller.org. > Unfortunately I'm running windows 7 (too poor for mac). > > My tutorial book says to type "ruby -v" into the cmd prompt to output > the version of ruby I'm running (v 1.9.3). > > If I do this at the Command Prompt, it says "ruby is not > recognized as an internal or external command, operable program or batch > file" > > But if I go into the ruby program file and open "Start Command Prompt > With Ruby" and type "ruby -v" then it outputs the correct version data. > > Why is this? > For "ruby" command be available in any command prompt, the Ruby installation you did needs to be available in the PATH. By default, RubyInstaller do not modify the user's environment. You can change that during installation, please see the checkboxes shown during the installer execution. -- Luis Lavena -- Posted via http://www.ruby-forum.com/.