From: "lrlebron@..." Date: 2006-12-15T13:05:05+09:00 Subject: Re: win 32 utils changenotify I downloaded the file and renamed it according to your instructions but I am still getting the same error. Luis Daniel Berger wrote: > lrlebron@gmail.com wrote: > > I just downloaded and installed the win32utils installer. When I try to > > run the sample script provide in changenotify.txt > > > > require "win32/changenotify" > > include Win32 > > > > # Wait for any writes to files in the C:\ drive. > > filter = ChangeNotify::LAST_WRITE > > cn = ChangeNotify.new("C:\\",true,filter) > > cn.wait{ |s| > > puts "Something changed" > > puts "File: " + s.file_name > > puts "Action: " + s.action > > > > } > > > > I get the following error. > > > > :/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/win32/ipc.so: invalid > > attribute name `recursive?' (NameError) > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > from cjsample.rb:1 > > > > What am I doing wrong? > > You'll need to upgrade to 0.4.2. You can either build from source or > download the .so file directly, rename it to "changenotify.so", and > install it under c:\ruby\lib\ruby\1.8\i386-mswin32\win32. > > The .zip file is at > http://rubyforge.org/frs/download.php/14978/win32-changenotify-0.4.2.zip > The .so file is at > http://rubyforge.org/frs/download.php/14979/changenotify-0.4.2.so > > Regards, > > Dan