location like : C:\ruby\lib\ruby\gems\1.8\cache
is where gem command copies gems to when it is installing them.
I am not sure if there may be a conflict there. (just being paranoid)
I would put all  your *.gem files you pulled form machine1 to
c:\tempgem\*.gem  location first and I would not touch rugby\1.8\cache dir.
let gem command manage that

so, then open cmd.exe in that temp location and run from that dir.
c:\tempgem> install watir --local
this should install watir and all dependencies (provided you have them in
tha FileList)
and then gem command will copy the gem to the
c:\ruby\lib\ruby\gems\1.8\cache for its own keeping.

look at 'gem help commands' command to look at other options.
notice that
1) gem pristine command uses the gems\1.8\cache dir for reinstalling gems
2) if you are behind firewall and you can keep all the gems on a local
server box.
and then do gem install -source URL
3) look at 'gem help mirror' command. you can move the gems around from
machine to machine as a bootstrapping option

4) When installing a gem check for dependency
gem dependency <gemname> it should give you  a list from gemspec files.

5) as a last resort just do 'gem install <gemname> --force" to ditch
dependency but you will have to resolve them manually (warning: not fun)

HTH

marekj

Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/



On Mon, Mar 9, 2009 at 3:24 PM, MatchBook <jeffrey.fl...@gmail.com> wrote:

>
> I played with using the --local option on a computer that has watir
> already installed.  I expected to get a message like "already
> installed", but instead:
>
> C:\ruby\lib\ruby\gems\1.8\cache>gem install watir --local
> ERROR:  While executing gem ... (NoMethodError)
>    undefined method `include?' for nil:NilClass
>
>
>
> On Mar 6, 2:21 pm, MatchBook <jeffrey.fl...@gmail.com> wrote:
> > Al,
> >
> > It necessary for me to specify the cache directory?  (Or can you
> > confirm for where the correct place is to place the cache directory?)
> > Here is what I have tried so far:
> >
> > p:\Jeff>gem install watir -l
> > ERROR:  While executing gem ... (RuntimeEr
> >     Error instaling watir:
> >         watir requires commonwatir = 1.6.2
> >
> > p:\Jeff>gem install watir -l -i p:\jeff\cache
> > ERROR:  While executing gem ... (RuntimeError)
> >     Error instaling watir:
> >         watir requires commonwatir = 1.6.2
> >
> > In the first case, I put the cache in C:\ruby\lib\ruby\gems
> > \1.8\cache.  In the second case, I tried another directory (I am not
> > sure if that is what the -i option is for).  Since the commonwatir gem
> > is in the cache, apparently it is not looking at my copied cache.
> >
> > Jeff
> >
> > On Mar 5, 6:54 pm, Al Snow <jas...@hotmail.com> wrote:
> >
> >
> >
> > > Jeff,
> >
> > > After you have the gem copied to your machine,
> > > you can run this command: gem install watir --local
> > > where the "--local" will only look for the gem to
> > > install on your local machine.
> >
> > > Thanks,
> > > Al Snow
> > > Agile Software Automation Architect
> > > Linkedin:http://www.linkedin.com/in/alsnow
> > > Google Talk: jasnow1
> > > Twitter: jasnow
> >
> > > > Date: Thu, 5 Mar 2009 17:12:21 -0800
> > > > Subject: [wtr-general] installing watir behind a firewall on Windows
> > > > From: jeffrey.fl...@gmail.com
> > > > To: watir-general@googlegroups.com
> >
> > > > I am not able to install watir on Windows either by using the
> > > > HTTP_PROXY environmental variable, nor by using the -p option for gem
> > > > install.  My firewall is password protected, so I get a 407 error.
> >
> > > > I resorted to zipping up the cache directory from a machine that is
> > > > not behind a firewall(C:\ruby\lib\ruby\gems\1.8\cache) and copying
> the
> > > > zip file to the machine that is behind the firewall.
> >
> > > > Now, I need help with the right gem install command to get this local
> > > > cache to be recognized.
> >
> > > > I appreciate it!
> >
> > > > Jeff
> >
> > > _________________________________________________________________
> > > Windows Liveā„¢: Life without walls.
> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032...Hidequoted
>  text -
> >
> > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to