ruby - Getting Load error -- watir-webdriver on Mac Yosemite -


i have ruby 2.2.2, have watir-webdriver gem installed, when run following script

require 'rubygems' require 'watir-webdriver' browser = watir::browser.new :firefox 

it gives in

`require': cannot load such file -- watir-webdriver(loaderror)     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 

i have rubymine 7.1.2

here gem list

$ gem list 

* local gems *

bigdecimal (1.2.6) bundler (1.10.3) bundler-unload (1.0.2) childprocess (0.5.6) executable-hooks (1.3.2) ffi (1.9.8) gem-wrappers (1.2.7) io-console (0.4.3) json (1.8.1) multi_json (1.11.1) psych (2.0.8) rake (10.4.2) rdoc (4.2.0) rubygems-bundler (1.4.4) rubyzip (1.1.7) rvm (1.11.3.9) selenium-webdriver (2.46.2) watir-webdriver (0.7.0) websocket (1.2.2) yard (0.8.7.6)

please suggest do?

/system/library/frameworks/ruby.framework/versions/2.0/... system library in os x yosemite.

ruby 2.2 (or other version) installed or other user -- perhaps via rvm, given have rvm gem installed? if need use rvm change default. if did not install rvm correctly or ignored warning or command gave you, might want re-install.

if did not install ruby 2.2 via rvm*, here instructions changing os x default ruby installed using brew.

(*i not recommend rvm more strongly. other people rbenv same job.)


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -