Forum: Ruby can't find io/wait on windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1f038f6679498ca015965f13c50e03d5?d=identicon&s=25 Tim Garwood (Guest)
on 2006-04-03 15:58
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
1f038f6679498ca015965f13c50e03d5?d=identicon&s=25 Tim Garwood (Guest)
on 2006-04-03 16:40
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
09db9a9e7139626ab3f82c66ab3e6449?d=identicon&s=25 Konstantin Levinski (Guest)
on 2006-04-03 19:21
(Received via mailing list)
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.
9358cc96c46055cd68d4a76a9aefe026?d=identicon&s=25 Daniel Harple (Guest)
on 2006-04-03 19:37
(Received via mailing list)
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
1f038f6679498ca015965f13c50e03d5?d=identicon&s=25 Tim Garwood (Guest)
on 2006-04-04 14:57
Daniel Harple 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
This topic is locked and can not be replied to.