Confusing error for installation

hi
i have installed ruby before and this never happened

here is a breakdown of everything

  1. downloaded and cd to ruby187\bin
  2. ruby shell
  3. i type in gem install watir no reaction
  4. typing in $gem install watir gives syntax error unexpected tidentifer
    expecting $end with ^ pointing before watir
    5.any type of command in ruby shell is unresponsive checking version
    does not work, uninstalling and reinstalling did not work either, at
    wits end please help!

On Mon, Mar 14, 2011 at 12:12 PM, Too T. [email protected]
wrote:

does not work, uninstalling and reinstalling did not work either, at
wits end please help!

Can you be more specific? What operating system is this? Ideally you
post the output of your console with error messages.

Cheers

robert

On Mar 14, 2011, at 04:12 , Too T. wrote:

does not work, uninstalling and reinstalling did not work either, at
wits end please help!

‘gem’ isn’t to be run inside a “ruby shell” but inside a regular shell.
I’m guessing you use windows with the backslash, so it should just be:

gem install watir

inside a regular cmd window.

the .gem folder is located is located in C:\Users\hervey however
i thought the folders had to be in the same filepath as ruby186?

running windows 7
the regular windows shell just gives back
“gem is not recongized as a external or internal command,operable
program or batch file”
the path for command shell is C:\Users\hervey
and ruby is installed C:\

On Mar 14, 8:07pm, “Too T.” [email protected] wrote:

running windows 7
the regular windows shell just gives back
“gem is not recongized as a external or internal command,operable
program or batch file”

Please use “Start Command Prompt with Ruby”

You receive that because Ruby was not added to the PATH.

During installation it ask you “Add Ruby executables to the PATH” as a
checkbox, and you didn’t check it.

Because of that, you can only start Ruby from the above mentioned
shortcut or by adding Ruby’s bin directory to the PATH:

SET PATH=C:\Ruby192\bin;%PATH%