I use Watir with Cygwin successfully, but my setup may differs from yours. I found out that using Ruby installation for Windows works best than the Ruby which can be installed via Cygwin.
So my Ruby instalation is at directory d:\ruby\ruby-1.8.4-16, which becomes /cygdrive/d/ruby/ruby-1.8.4-16 for Cygwin. I think Ruby 1.8.2 there were some problems with the .cmd extension, but 1.8.4 version replaces then for .bat extensions and I don't think I need to create alias like this anymore ~/.bashrc: alias irb='irb.bat' alias ri='ri.bat' etc.... As for executing a Ruby script directly I give up, so instead of trying "$ ./my_script.rb" I always write "$ ruby ./my_script.rb". Was that helpful? Good luck! 2006/3/28, Katy <[EMAIL PROTECTED]>: > I've got Ruby and Watir installed,Ruby seems to be recognized in Cygwin as > following : > > $ruby -v > ruby 1.8.4 (2005-12-24) [i386-cygwin] > > When trying to run irb however ,i receive a '/usr/bin/ruby :no such file to > load --- ubygems (LoadError)' > When running irb in command window the following is received when running > 'require 'watir'" > > irb(main):001:0> require 'watir' > LoadError: No such file to load -- watir > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `re > quire__' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `re > quire' > from (irb):1 > irb(main):002:0> > > I've searched the mailing list for info on this subject and only found some > reference to the win32ole-0.5.2 in regards to Watir ... > > Would appreciate any help on this - I'd rather use Cygwin than windows > commandline,but any one of them will do as an non-fxri option. > > -- > Katy > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
