Also, I tried putting the gems folder in my Path variable, someone suggested that to me on Twitter, that doesn't help either.
2012/2/16 Lisa Crispin <lisa.cris...@gmail.com> > I didn't have to do that on my other machine, but what the heck, I tried > adding require 'rubygems'. Here's a snippet of my code where the requires > are: > require 'test/unit' > require 'rubygems' > require 'watir' > > It doesn't help. I still get the same error. I read that page in your > book, but it looks like I'm doing what you suggest there. > > Other ideas? > thanks > Lisa > > > On Thu, Feb 16, 2012 at 5:07 PM, Željko Filipin > <zeljko.fili...@gmail.com>wrote: > >> Hi Lisa, >> >> comments are inline. >> >> Željko >> >> >> On Thu, Feb 16, 2012 at 6:03 PM, Lisa Crispin <lisa.cris...@gmail.com> >> wrote: >> > I uninstalled whatever Ruby that was, and installed ruby 1.8.7 instead. >> >> Is there a reason for using ruby 1.8.7.? I would suggest that you install >> ruby 1.9.3. >> >> > However, when I try to run a script, I get an error 'require': no such >> file to load -- watir (LoadError). >> >> This usually happens when your ruby installation does not require >> rubygems by default. Try adding this to the top of the file: >> >> require "rubygems" >> >> By the way, I wrote about that problem in the book: >> >> >> https://github.com/zeljkofilipin/watirbook/blob/master/watir-in-five-minutes.md >> >> Željko >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-general@googlegroups.com >> http://groups.google.com/group/watir-general >> watir-general+unsubscr...@googlegroups.com >> > > > > -- > Lisa Crispin > Co-author with Janet Gregory, _Agile Testing: A Practical Guide for > Testers and Agile Teams_ (Addison-Wesley 2009) > Contributor to _Beautiful Testing_ (O'Reilly 2009) > http://lisacrispin.com > @lisacrispin on Twitter > http://entaggle.com/lisacrispin > > -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter http://entaggle.com/lisacrispin -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com