From: Mike Moore Date: 2011-02-12T09:10:08+09:00 Subject: Re: Not finding a Ruby Gem --4d55cfd9_4427069a_db Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline On Friday, February 11, 2011 at 4:55 PM, Bob Hatch wrote: require 'win32/screenshot' > > count = 0 > > while count != 10 > count = count+1 > > Win32::Screenshot::Take.of(:foreground).write("c:\\scrn_cap" + > count.to_s() + ".jpg") > > sleep(600) > > end You probably need to require RubyGems first. require 'rubygems' require 'win32/screenshot' count = 0 while count != 10 count = count+1 Win32::Screenshot::Take.of(:foreground).write("c:\\scrn_cap" + count.to_s() + ".jpg") sleep(600) end If you don't want to explicitly require RubyGems then you can specify it in RUBYOPT. See the post-install instructions here: http://docs.rubygems.org/read/chapter/3 --4d55cfd9_4427069a_db--