verify installation

M

marcoa

Is there a way to verify the installation of Ruby
I have downloaded and installed "182-15 stable" and then installed the
watir gem (gem install watir) taken all the defualt dependencies.
I am having a problem with executing the require 'watir' statement so
I want to ensure my ruby install is good.

Thanks to all

Marco
 
J

Justin Collins

marcoa said:
Is there a way to verify the installation of Ruby
I have downloaded and installed "182-15 stable" and then installed the
watir gem (gem install watir) taken all the defualt dependencies.
I am having a problem with executing the require 'watir' statement so
I want to ensure my ruby install is good.

Thanks to all

Marco

When you use gems, you have to require RubyGems somehow anytime you want
to use something installed as a gem.

Try:

require "rubygems"
require "watir"


-Justin
 
M

marcoa

When you use gems, you have to require RubyGems somehow anytime you want
to use something installed as a gem.

Try:

require "rubygems"
require "watir"

-Justin

I did as suggested. See transcript below. Notice the return of "false"
after the require rubygems. I did a "update_rubygems" and it reports
that rubygems is already installed. Weird??

C:\>irb
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'watir'
Windows::API::Error: #<Windows::API::Error:0x2b08310>
from c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.3/lib/
windows/api.rb:331:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/lib/
windows/window.rb:40:in `new'
from c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/lib/
windows/window.rb:40
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.8/lib/
win32/process.rb:8
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/ie-
process.rb:1
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir.rb:47
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
23:in `require'
from (irb):2
irb(main):003:0>
 
J

Justin Collins

marcoa said:
I did as suggested. See transcript below. Notice the return of "false"
after the require rubygems. I did a "update_rubygems" and it reports
that rubygems is already installed. Weird??

C:\>irb
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'watir'
Windows::API::Error: #<Windows::API::Error:0x2b08310>
from c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.3/lib/
windows/api.rb:331:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/lib/
windows/window.rb:40:in `new'
from c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/lib/
windows/window.rb:40
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.8/lib/
win32/process.rb:8
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/ie-
process.rb:1
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir.rb:47
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
18:in `require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
23:in `require'
from (irb):2
irb(main):003:0>

The false return value is typical for RubyGems and nothing to worry
about. I would suggest looking for help from Watir's community.

-Justin
 
M

marcoa

The false return value is typical for RubyGems and nothing to worry
about. I would suggest looking for help from Watir's community.

-Justin- Hide quoted text -

- Show quoted text -

Ok good to know. I have posted in the watir group but someone there
suggested verifying my ruby installation by running some canned unit
tests or something and that is why I came over to this group to find
out how to verify an installation. Once verified I will have reason to
isolate the discussion to watir ;)

Marco
 
J

Justin Collins

marcoa said:
Ok good to know. I have posted in the watir group but someone there
suggested verifying my ruby installation by running some canned unit
tests or something and that is why I came over to this group to find
out how to verify an installation. Once verified I will have reason to
isolate the discussion to watir ;)

Marco
The Ruby source does come with tests, but I have no idea how they work
on Windows.

-Justin
 
L

Luis Lavena

Ok good to know. I have posted in the watir group but someone there
suggested verifying my ruby installation by running some canned unit
tests or something and that is why I came over to this group to find
out how to verify an installation. Once verified I will have reason to
isolate the discussion to watir ;)

I'll suggest you revisit the Watir dependencies.

based on the backtrace, it seems Watir is using latest windows-pr
version, dunno if was planned to run with it or any other specific
version.

I ran into similar problems for mongrel_service and win32-service
dependency. I suggest you look into that before.

You can ask anyone in the Watir list give you a list of gems and
versions related to win32utils project (both windows-pr and win32-
process gems)

Also, will be helpful know the version of Windows you're using (XP or
Vista in 32 or 64bits versions).

Regards,
 

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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top