I installed water with Ruby:
> gem install water
Then I made sure GEM_PATH was set to Ruby's gem location:
> set GEM_PATH=C:\Ruby\lib\ruby\gems\1.8\
And then running IronRuby shows I can require 'watir' just fine:
>>> require 'rubygems'
=> true
>>> Gem.path
=> ["C:/Ruby/lib/ruby/gems/1.8/"]
>>> require 'watir'
=> true
However, looks like Watir ships with a copy of win32ole, which will need to be
updated to our version:
>>> Watir::IE
:0:in `require': The module was expected to contain an assembly manifest.
(Exception from HRESULT: 0x80131018) (LoadError)
from custom_require.rb:30:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/win32ole.rb:5
from :0:in `require'
from custom_require.rb:30:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:38
from :0
Even after fixing that, Watir depends on dl/import and WIN32API, so someone
we'll need to port Watir to either not use those things, or write C#
implementations of those c-based libraries:
>>> Watir::IE
:0:in `require': no such file to load -- dl (LoadError)
from custom_require.rb:30:in `require'
from
C:/dev/ironruby/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/dl/import.rb:3
from :0:in `require'
from custom_require.rb:30:in `require'
from
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/winClicker.rb:53
from :0:in `require'
from custom_require.rb:30:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:41
from :0
So for now, Watir won't work on IronRuby because of its native Ruby extension
dependencies. I've got a bug to track this here:
http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2532
~js
From: [email protected]
[mailto:[email protected]] On Behalf Of Mohammad Azam
Sent: Monday, September 21, 2009 11:25 AM
To: [email protected]
Subject: Re: [Ironruby-core] Manually Setting the Gems Path
Yup! I ran that but nothing happened. So, I manually placed the gem directory
path in the environment variables.
On Mon, Sep 21, 2009 at 1:13 PM, Jimmy Schementi
<[email protected]<mailto:[email protected]>> wrote:
There is only one: Merlin/Main/Languages/Ruby/Scripts/Dev.bat
http://wiki.github.com/ironruby/ironruby/devbat
________________________________
From:
[email protected]<mailto:[email protected]>
[[email protected]<mailto:[email protected]>]
on behalf of Mohammad Azam [[email protected]<mailto:[email protected]>]
Sent: Monday, September 21, 2009 11:10 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Ironruby-core] Manually Setting the Gems Path
Which dev.bat to use since there are three of them?
On Mon, Sep 21, 2009 at 1:02 PM, Mohammad Azam
<[email protected]<mailto:[email protected]>> wrote:
I am trying to hook up Watir with IronRuby but since I cannot use the following
ir.exe igem install watir
I have downloaded Watir for Ruby (Not IronRuby). I have setup the path to the
ruby libraries in the ir.exe.config file with "c:\ruby"
But still I am not able to run Watir. I get the exception
require no such file to load ----- watir
On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley
<[email protected]<mailto:[email protected]>> wrote:
Yes, dev.bat will inject the default environment variables for you. That's not
the root of the problem necessarily, but it should help get your gems in the
right place.
Ryan Riley
[email protected]<mailto:[email protected]>
http://panesofglass.org/
http://wizardsofsmart.net/
On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam
<[email protected]<mailto:[email protected]>> wrote:
No!
Do I have to click on dev.bat in order to inject the environment variables?
_______________________________________________
Ironruby-core mailing list
[email protected]<mailto:[email protected]>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com<http://www.highoncoding.com>
www.azamsharp.com<http://www.azamsharp.com>
--
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com<http://www.highoncoding.com>
www.azamsharp.com<http://www.azamsharp.com>
_______________________________________________
Ironruby-core mailing list
[email protected]<mailto:[email protected]>
http://rubyforge.org/mailman/listinfo/ironruby-core
--
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com<http://www.highoncoding.com>
www.azamsharp.com<http://www.azamsharp.com>
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core