Forum: Ruby ruby on WindowsXP can't load module wx

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.
Heinrich P. (Guest)
on 2008-11-14 21:08
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
Luis L. (Guest)
on 2008-11-15 00:40
(Received via mailing list)
On Nov 14, 4:05 pm, Heinrich P. <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,
Alex F. (Guest)
on 2008-11-15 01:15
(Received via mailing list)
Luis L. wrote:
> On Nov 14, 4:05 pm, Heinrich P. <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
This topic is locked and can not be replied to.