# \`require': no such file to load -- win32/sound

**URL:** <https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341>\
**Category:** Ruby\
**Created:** [October 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341 "2008-10-07T15:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341/1 "2008-10-07T15:35:42Z")

</div>

I am trying out the following X10 intergratuion with Bamboo (http://  
[urlant.com//yvwjlo](http://urlant.com//yvwjlo)) and when i installed the one click windows install  
of Ruby and run the ruby script, i get the following error:

C:\ruby\bin\>ruby C:\ruby\samples\ContinuousIntegrationLampControl  
\continuous\_bui  
lder\_lamp\_controller.rb  
C:/ruby/samples/ContinuousIntegrationLampControl/  
continuous\_builder\_lamp\_control  
ler.rb:3:in `require’: no such file to load – win32/sound (LoadError)  
from C:/ruby/samples/ContinuousIntegrationLampControl/  
continuous\_builder  
\_lamp\_controller.rb:3

Is there any 101 testing i can do to test that ruby is working  
correctly befiore i go to far into hacking the script.

Ww

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 7, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-win32-sound/150341/2 "2008-10-07T15:53:24Z")

</div>

On Oct 7, 7:33 am, removed\_email\_address@domain.invalid wrote:

> ```
> from C:/ruby/samples/ContinuousIntegrationLampControl/
> 
> ```
> 
> continuous\_builder  
> \_lamp\_controller.rb:3
> 
> Is there any 101 testing i can do to test that ruby is working  
> correctly befiore i go to far into hacking the script.

Fire up an irb session and type ‘require “win32/sound”’.

If that fails, try ‘require “rubygems”’ first, then try to load win32-  
sound. If that works, you either need to set your RUBYOPT environment  
variable, or you need to explicitly require rubygems first.

If that doesn’t work, then type “gem list” and make sure you have  
win32-sound installed.

Regards,

Dan
