ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: verify installation
by Luis Lavena other posts by this author
May 10 2008 4:25PM messages near this date
Re: verify installation | Re: verify installation
On 9 mayo, 17:45, marcoa <m...@[...].com>  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 ;)
> 

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
Thread:
Marcoa
Justin Collins
Luis Lavena
Marcoa
Justin Collins
Marcoa
Justin Collins

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved