[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

' gem ' is not recongnized....

Erik Boling

8/13/2007 12:39:00 AM

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?
--
Posted via http://www.ruby-....

2 Answers

Ronald Fischer

8/13/2007 10:38:00 AM

0

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

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).

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

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
--
Ronald Fischer <ronald.fischer@venyon.com>
Phone: +49-89-452133-162

Erik Boling

8/14/2007 6:45:00 AM

0

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 :)

--
Posted via http://www.ruby-....