In article <K4dfc.46156$LL6.16943 / fe1.texas.rr.com>, Its Me <itsme213 / hotmail.com> wrote: >Running instiki.rb with Ruby 1.8.1 on Windows 2000 gives this error: > >C:/Documents and >Settings/desmond/Desktop/misc/ruby/instiki-0.5.0/libraries/madeleine.rb:327: >in `mkdir': No such file or directory - C:/Documents and >Settings/desmond/Desktop/misc/ruby/instiki-0.5.0/storage/2500 >(Errno::ENOENT) > from C:/Documents and >Settings/desmond/Desktop/misc/ruby/instiki-0.5.0/libraries/madeleine.rb:327: >in `ensure_directory_exists' > from C:/Documents and >Settings/desmond/Desktop/misc/ruby/instiki-0.5.0/libraries/madeleine.rb:322: >in `initialize' > from C:/Documents and >Settings/desmond/Desktop/misc/ruby/instiki-0.5.0/libraries/madeleine.rb:43:i >n `new' > > >If I manually create directories storage/2500, it gets a bit further and >then > >[2004-04-14 10:48:43] INFO WEBrick 1.3.1 >[2004-04-14 10:48:43] INFO ruby 1.8.1 (2004-01-27) [i386-mswin32] >c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:29:in `fork': The >fork() function is unimplemented on this machine (NotImplementedError) > from c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:29:in `start' > from c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' > > >And lastly if I try to run with "-s" option: > >[2004-04-14 10:49:26] INFO WEBrick 1.3.1 >[2004-04-14 10:49:26] INFO ruby 1.8.1 (2004-01-27) [i386-mswin32] >c:/program files/ruby/lib/ruby/1.8/webrick/utils.rb:52:in `getaddrinfo': >getaddrinfo: servname not supported for ai_socktype. (SocketError) > from c:/program files/ruby/lib/ruby/1.8/webrick/utils.rb:52:in >`create_listeners' > from c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:72:in `listen' > >Something amiss in 0.5? Version 0.3.x seemed to work for me. > There's no 'fork' function on Windows. Apparently it was added in 0.5. Instead of 'fork' the Instiki writer should consider using threads or Perhaps using win32-process (from RAA: The package provides fork, wait, wait2, waitpid and waitpid2 for Win32 systems. It also provides an alternative kill method. ). Looks like win32-process would provide a 'fork' function on Windows. BTW: Why not include win32-process in the standard Ruby distro so that if you're running Ruby on Windows and make a call to 'fork' it gets it from win32-process? Phil