[wtr-general] How to install Watir 1.6.2 with Ruby 1.9.3? Or with any Ruby, such that my scripts will work?

2012-02-17 Thread Lisa Crispin
At Zeljko's suggestion, I installed the latest Ruby, then tried to install
Watir 1.6.2. I got this error:
gem install watir -v 1.6.2
ERROR:  While executing gem ... (Gem::Dependenc
yError)
   Unable to resolve dependencies: watir requires commonwatir (= 1.6.2);
firewa
tir requires commonwatir (= 1.9.2)

Z suggested to install both versions of commonwatir, which I did. When I
ran a Watir script, I got this error:
C:/Ruby193/lib/
ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_
conflicts': Unable to activate watir-1.6.2, because commonwatir-1.9.2
conflicts
with commonwatir (= 1.6.2) (Gem::LoadError)
   from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:741:i
n `activate'
   from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `rescue
in t
ry_activate'
   from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:206:in
`try_activat
e'
   from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:i
n `rescue in require'
   from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'

I uninstalled commonwatir at Z's suggestion, then when I ran the watir
script I got this:
but when I run script, it still says, C:/Ruby193/lib/
ruby/site_ruby/1.9.1/rubygems/specification.rb:1626:in `raise_if_
conflicts': Unable to activate firewatir-1.9.4, because commonwatir-1.6.2
confli
cts with commonwatir (= 1.9.2) (Gem::LoadError)

Z suggested I uninstall firewatir, I did that. Then when I ran the script I
get this error:
C:/Ruby193/lib/
ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Co
uld not find firewatir (= 0) amongst [activesupport-3.2.1,
bigdecimal-1.1.0, bu
ilder-3.0.0, commonwatir-1.6.2, hoe-2.13.1, i18n-0.6.0, io-console-0.3,
json-1.5
.4, minitest-2.5.1, multi_json-1.0.4, rake-0.9.2.2, rdoc-3.9.4,
s4t-utils-1.0.4,
user-choices-1.1.6.1, watir-1.6.2, win32-api-1.4.8-x86-mingw32,
win32-process-0
.6.5, windows-api-0.4.1, windows-pr-1.2.1, xml-simple-1.1.1]
(Gem::LoadError)

I don't WANT firewatir. Why do I have to have it?

The basic question is - how may I get Watir 1.6.2 working on my Windows 7
PC? I don't care what version of either Ruby or Watir that I have, I just
need for my many Watir scripts to work here. They work fine on my old Vista
64 PC that has Ruby 1.8.6 and Watir 1.6.2. I have tried to install both
Ruby 1.8.7/Watir 1.6.2 - scripts didn't work - and tried to install Ruby
1.8.6, but when I did that, the install of watir wouldn't work.

I'm losing the will to live. Please help!
-- Lisa


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to install Watir 1.6.2 with Ruby 1.9.3? Or with any Ruby, such that my scripts will work?

2012-02-17 Thread Željko Filipin
On Fri, Feb 17, 2012 at 2:03 PM, Lisa Crispin lisa.cris...@gmail.com
wrote:
 They work fine on my old Vista 64 PC that has Ruby 1.8.6 and Watir 1.6.2.

Try copying ruby folder from the machine where everything is set up to the
new machine. Probably the only thing you should fix on the new machine is
to add c:\ruby\bin or something like that to path.

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com