# Can't find io/wait on windows

**URL:** <https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752>\
**Category:** Ruby\
**Created:** [April 3, 2006, 3:58pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752 "2006-04-03T15:58:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Garwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Post date:** [April 3, 2006, 3:58pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752/1 "2006-04-03T15:58:43Z")

</div>

Hello,

This is my first post. I read a post from a little while ago about  
having trouble getting io/wait to work on Windows. I downloaded the  
win32utils library off of rubyforge and installed it to the default path  
of:

c:\ruby\lib\ruby\site\_ruby\1.8\i386-msvcrt\win32

The code that I have that is using io/wait is:

* * *

require ‘io/wait’  
require ‘rubygems’  
require ‘stomp’

## c = Stomp::Client.new “blahuser”, “blahpass”, “localhost”, 61626 c.subscribe("/queue/blah") { |m| puts m.body } c.send("/queue/blah", “Hello, World”)

Do I need to change the require ‘io/wait’ line to something different  
now that I have win32utils installed? Or do I need to reinstall to a  
different directory or something? I can’t seem to find information on  
this anywhere except for the 1 post from before.

Thank you,  
-Tim

---

<div class="post-metadata">

**Author:** ![Tim\_Garwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Post date:** [April 3, 2006, 4:40pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752/2 "2006-04-03T16:40:04Z")

</div>

Tim Garwood wrote:

> Hello,
> 
> This is my first post. I read a post from a little while ago about  
> having trouble getting io/wait to work on Windows. I downloaded the  
> win32utils library off of rubyforge and installed it to the default path  
> of:
> 
> c:\ruby\lib\ruby\site\_ruby\1.8\i386-msvcrt\win32
> 
> The code that I have that is using io/wait is:
> 
> * * *
> 
> require ‘io/wait’  
> require ‘rubygems’  
> require ‘stomp’
> 
> ## c = Stomp::Client.new “blahuser”, “blahpass”, “localhost”, 61626 c.subscribe("/queue/blah") { |m| puts m.body } c.send("/queue/blah", “Hello, World”)
> 
> Do I need to change the require ‘io/wait’ line to something different  
> now that I have win32utils installed? Or do I need to reinstall to a  
> different directory or something? I can’t seem to find information on  
> this anywhere except for the 1 post from before.
> 
> Thank you,  
> -Tim

I should probably add that the error I’m getting is in  
custom\_require.rb:18 and it says:

No such file to load – io/wait (LoadError)

Also, the whole reason for writing this is because I’m trying to get  
Stomp running with ActiveMQ and I’m trying to test it with this little  
bit of code.

-Tim

---

<div class="post-metadata">

**Author:** ![Tim\_Garwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Post date:** [April 3, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752/3 "2006-04-03T19:21:56Z")

</div>

generally, you can look into variable $: to see where ruby looks for  
things.  
p $:  
then it is usually easy to figure out what to ‘require’ to get the  
library to load.

---

<div class="post-metadata">

**Author:** ![Tim\_Garwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Post date:** [April 3, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752/4 "2006-04-03T19:37:10Z")

</div>

On Apr 3, 2006, at 7:18 PM, Konstantin Levinski wrote:

> generally, you can look into variable $: to see where ruby looks for  
> things.

Or use the understandable name:

$LOAD\_PATH

– Daniel

---

<div class="post-metadata">

**Author:** ![Tim\_Garwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Post date:** [April 4, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752/5 "2006-04-04T14:57:19Z")

</div>

Daniel H. wrote:

> On Apr 3, 2006, at 7:18 PM, Konstantin Levinski wrote:
> 
> > generally, you can look into variable $: to see where ruby looks for  
> > things.
> 
> Or use the understandable name:
> 
> $LOAD\_PATH
> 
> – Daniel

Alright, thanks guys. I will try this out.

-Tim
