From: Luis Lavena Date: 2008-05-11T08:25:07+09:00 Subject: Re: verify installation On 9 mayo, 17:45, marcoa wrote: > On May 9, 4:14 pm, Justin Collins wrote: > > > > > marcoa wrote: > > > On May 9, 2:03 pm, Justin Collins wrote: > > > >> marcoa wrote: > > > >>> 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 > > > > 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: # > > > 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- 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 ;) > 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, -- Luis Lavena