I am getting error with "selenium-webdriver". Any advice on that?


C:\>gem --list
ERROR:  Invalid option: --list.  See 'gem --help'.

C:\>gem --help
RubyGems is a sophisticated package manager for Ruby.  This is a
basic help message containing pointers to more information.

  Usage:
    gem -h/--help
    gem -v/--version
    gem command [arguments...] [options...]

  Examples:
    gem install rake
    gem list --local
    gem build package.gemspec
    gem help install

  Further help:
    gem help commands            list all 'gem' commands
    gem help examples            show some examples of usage
    gem help platforms           show information about platforms
    gem help <COMMAND>           show help on COMMAND
                                   (e.g. 'gem help install')
    gem server                   present a web page at
                                 http://localhost:8808/
                                 with info about installed gems
  Further information:
    http://guides.rubygems.org

C:\>gem list --local

*** LOCAL GEMS ***

bigdecimal (1.2.0)
childprocess (0.3.9)
ffi (1.4.0 x86-mingw32)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
multi_json (1.6.1)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubyzip (0.9.9)
selenium-webdriver (2.31.0)
test-unit (2.0.0.0)
websocket (1.0.7)

C:\>irb --simple-prompt
DL is deprecated, please use Fiddle
>> require "selenium-webdriver"
LoadError: cannot load such file -- ffi_c
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/ffi-1.4.0-x86-mingw32/lib/ffi.r
b:12:in `rescue in <top (required)>'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/ffi-1.4.0-x86-mingw32/lib/ffi.r
b:3:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childpro
cess/windows.rb:1:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib/childpro
cess.rb:176:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.31.0/lib/s
elenium/webdriver.rb:1:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
        from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.31.0/lib/s
elenium-webdriver.rb:1:in `<top (required)>'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:i
n `require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:i
n `rescue in require'
        from
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in
 `require'
        from (irb):1
        from C:/Ruby200/bin/irb:12:in `<main>'>>

-- 
Posted via http://www.ruby-forum.com/.