[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Noob has trouble with io/wait on Windows

Larry Edelstein

2/23/2006 12:52:00 AM

I'm trying to use the "io/wait" library (using "require 'io/wait'") but
the interpreter won't load it.

I'm a dang newbie and I've just installed the 1.8.2 one-click package on
Windows. Do I need to do something special to enable this
package? The error I get is like so:

D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__': No such file to load -- io/wait (LoadError)
from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from D:/repository/projects/.eclipse/STOMPing grounds/test_stomp.rb:1

Larry Edelstein
Revere Data
ribs@acm.org


--
Posted via http://www.ruby-....


1 Answer

Dave Burt

2/23/2006 10:24:00 AM

0

Larry Edelstein asked...
> I'm trying to use the "io/wait" library (using "require 'io/wait'") but
> the interpreter won't load it.
>
> I'm a dang newbie and I've just installed the 1.8.2 one-click package on
> Windows. Do I need to do something special to enable this
> package? The error I get is like so:
>
> D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require__': No such file to load -- io/wait (LoadError)

io/wait is one of the POSIX-based functions (along with fork, etc.) that
doesn't work on Windows (yet).

The win32utils library win32-process available from RubyForge provides a
replacement:
http://rubyforge.org/projects/w...

Cheers,
Dave