Re: verify installation
by Justin Collins other posts by this author
May 9 2008 2:30PM messages near this date
Re: verify installation
|
Re: verify installation
marcoa wrote:
> On May 9, 4:14 pm, Justin Collins <justincoll...@[...].edu> wrote:
>
> > marcoa wrote:
> >
> >> On May 9, 2:03 pm, Justin Collins <justincoll...@[...].edu> 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: #<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- 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
>
>
The Ruby source does come with tests, but I have no idea how they work
on Windows.
-Justin
Thread:
Marcoa
Justin Collins
Luis Lavena
Marcoa
Justin Collins
Marcoa
Justin Collins
|