Error while I try to install WATIR Watir 7.0 Beta 3

117 views
Skip to first unread message

rajagopal...@gmail.com

unread,
Jul 26, 2021, 3:19:11 AM7/26/21
to Watir General

I am having this error while I try to install WATIR 7.0 Beta 3

>ruby hi.rb
<internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- watir (LoadError)
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from hi.rb:1:in `<main>'
>Exit code: 1
>ruby hi.rb
C:/Ruby30/lib/ruby/gems/3.0.0/gems/childprocess-4.1.0/lib/childprocess/windows.rb:6:in `rescue in <top (required)>': FFI is a required pre-requisite for Windows or posix_spawn support in the ChildProcess gem. Ensure the `ffi` gem is installed. If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues (ChildProcess::MissingFFIError)
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/childprocess-4.1.0/lib/childprocess/windows.rb:3:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/childprocess-4.1.0/lib/childprocess.rb:209:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.0.0.beta4/lib/selenium/webdriver.rb:20:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.0.0.beta4/lib/selenium-webdriver.rb:20:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/watir-7.0.0.beta4/lib/watir.rb:1:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from hi.rb:1:in `<main>'
<internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- ffi (LoadError)
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/childprocess-4.1.0/lib/childprocess/windows.rb:4:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/childprocess-4.1.0/lib/childprocess.rb:209:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.0.0.beta4/lib/selenium/webdriver.rb:20:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.0.0.beta4/lib/selenium-webdriver.rb:20:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from C:/Ruby30/lib/ruby/gems/3.0.0/gems/watir-7.0.0.beta4/lib/watir.rb:1:in `<top (required)>'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from hi.rb:1:in `<main>'
<internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- watir (LoadError)
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from hi.rb:1:in `<main>'
>Exit code: 1


rajagopal...@gmail.com

unread,
Jul 26, 2021, 3:20:38 AM7/26/21
to Watir General
Oh sorry, the aforementioned error is not when I install watir. But while I am executing the below code

require 'watir'

b=Watir::Browser.new

b.goto 'www.google.com'

rajagopal...@gmail.com

unread,
Jul 26, 2021, 3:24:52 AM7/26/21
to Watir General
I fixed this problem. Thanks.
Reply all
Reply to author
Forward
0 new messages