confusing error for installation

T

Too T.

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!
 
R

Robert Klemme

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!

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

Cheers

robert
 
R

Ryan Davis

hi
i have installed ruby before and this never happened
=20
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!

'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.
 
T

Too T.

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:\
 
T

Too T.

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?
 
L

Luis Lavena

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%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top