# Ruby on WindowsXP can't load module wx

**URL:** <https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321>\
**Category:** Ruby\
**Created:** [November 14, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321 "2008-11-14T20:08:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinrich1208](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Post date:** [November 14, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321/1 "2008-11-14T20:08:07Z")

</div>

Hi,

any idea why this happens?

c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wxruby2.so:  
126: The specified module could not be found. -  
c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wxruby2.so  
(LoadError)  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`require' from c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx.rb:12 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in`gem\_original\_require’  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`require’  
from GetDataFromComet.rb:2

The file is definitely in that directory.

bye  
Henry

---

<div class="post-metadata">

**Author:** ![heinrich1208](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Post date:** [November 14, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321/2 "2008-11-14T23:40:48Z")

</div>

On Nov 14, 4:05 pm, Heinrich P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> from  
> c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx.rb:12  
> from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
> `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require’  
> from GetDataFromComet.rb:2
> 
> The file is definitely in that directory.

Hello Henry,

You didn’t see a popup indicating the missing DLL?

Looks like wxruby2.so depends on wxWidgets externall DLL, but cannot  
comment more on wxRuby 2 since didn’t played with it yet.  
(if it was statically or dynamically linked).

Can you also indicate both your ruby and gem environment?

C:\ruby\> ruby -v

C:\ruby\> gem env

Regards,

---

<div class="post-metadata">

**Author:** ![heinrich1208](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Post date:** [November 15, 2008, 12:15am UTC](https://www.ruby-forum.com/t/ruby-on-windowsxp-cant-load-module-wx/153321/3 "2008-11-15T00:15:56Z")

</div>

Luis L. wrote:

> On Nov 14, 4:05 pm, Heinrich P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi,
> > 
> > any idea why this happens?
> > 
> > c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wxruby2.so:  
> > 126: The specified module could not be found

…

> You didn’t see a popup indicating the missing DLL?
> 
> Looks like wxruby2.so depends on wxWidgets externall DLL, but cannot  
> comment more on wxRuby 2 since didn’t played with it yet.  
> (if it was statically or dynamically linked).

All wxRuby official builds for Windows are statically linked. On XP it’s  
unusual that extra .dlls are required, and we haven’t had any reports of  
problems with this release.

It may be worth checking that you’ve got msvcp71.dll in your  
Windows/System32 folder. If not, it is a free download. However, as Luis  
says, if this were the problem, I’d have expected a popup error saying  
something like “the dynamic link library xxxx could not be found”.

> Can you also indicate both your ruby and gem environment?
> 
> C:\ruby\> ruby -v
> 
> C:\ruby\> gem env

Please, and it would be better to follow this up on the wxruby-users  
mailing list rather than this general ruby group.

alex
