' gem ' is not recongnized....

E

Erik Boling

Hello, i have been having some trouble installing the "watir" gem.
So, 1st things 1st, i have never tried to install any of these type of
libraries so i may be doing this completly wrong. From my understanding
you can DL these as .gem or .exe. I was reading online and saw that
DL'ing the exe is easier.
I DL'ed the watir-1.4.1 *i bevlive*, and saved it in C drive. Next i
tried to install it via- command propt as many sites told me to by
entering "gem install watir". But its not recognizing 'gem'
C:\>gem install watir
'gem' is not recognized as an internal or external command,
operable program or batch file.

C:\>
I thought i had gems installed along wirth ruby, so just in case i got
it online and installed it again?
Any one know what I'm doing wrong?
 
R

Ronald Fischer

you can DL these as .gem or .exe. I was reading online and saw that
DL'ing the exe is easier.
I DL'ed the watir-1.4.1 *i bevlive*, and saved it in C drive.=20

I'm surprised that a gem is offered as "exe". I always first try
to install the gems like this:

gem install -r GEMNAME

This usually takes care of downloading, provided the gem can be found
at rubyforge. If you prefer, or if you get a gem from a different
site, you can download the gem and install it locally:

gem install FILENAME

(where FILENAME is the name of the downloaded gem).
=20
'gem' is not recognized as an internal or external command,
operable program or batch file.
=20
C:\>
I thought i had gems installed along wirth ruby, so just in case i got
it online and installed it again?

At least if you use a sufficiently new version of Ruby, it *should* be
there.
What does ruby --version say?

Next, execute

ruby -e "puts Config::CONFIG['bindir']"

and have a look in that directory: Is there no GEM.BAT?

Could it be that you have moved ruby.exe after installation to some
directory
in your PATH, so that only ruby.exe is seen, but not the other
utilities?
Can you for example execute

ri Array

or do you get here an error message too?

Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162
 
E

Erik Boling

I'm sorry for not responding soon enough, i figured it out though.
I had to enter "watir gem install", and that did the trick, thanks :)
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top