Ruby - require 'watir-webdriver' - generates a LoadError no such file… Why?

In 1.8.7 you need to require rubygems first. Require 'rubygems' Some explanation here: How does require rubygems help find rubygem files?

1 Worked like a charm, thanks. – Dirk Nov 9 at 15:07.

Depending on your setup, you might need to require 'rubygems' first, like so: $ irb >> require 'rubygems'; require 'watir-webdriver' => true.

In Ruby 1.8.7, require won't locate gems unless you do require 'rubygems' first. (Ruby 1.9 loads gems without this. ) I highly, highly recommend using Bundler for managing gem dependencies.

If you weren't on Windows, I'd recommend RVM as well; I understand that Pik may do something similar for Windows, but I've never used it.

Thanks. I'm taking a look at Pik now. – Dirk Nov 9 at 15:09 Pik doesn't let you define sets of gems the way RVM does, but it does make it easy to juggle back and forth between versions of ruby, each with its own set of gems.(it can also duplicate a set of gems from one version to another).

Great for when you want to 'move up' to a new version of ruby and run both at the same time (alternatively) on the same system. – Chuck van der Linden Nov 9 at 18:00 If you're using Bundler, you don't really need RVM gemsets (though I often use both together). – Marnen Laibow-Koser Nov 9 at 19:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions