# Compatibility Issues?

**URL:** <https://www.ruby-forum.com/t/compatibility-issues/160351>\
**Category:** wxRuby\
**Created:** [February 15, 2009, 6:17am UTC](https://www.ruby-forum.com/t/compatibility-issues/160351 "2009-02-15T06:17:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [February 15, 2009, 6:17am UTC](https://www.ruby-forum.com/t/compatibility-issues/160351/1 "2009-02-15T06:17:52Z")

</div>

I’m running Ruby 1.9.1 (Win32) and I installed the  
wxruby-1.9.10-x86-mswin32-60 gem.

But when I try to run a script with it, I get an error, “This  
application has failed to start because msvcrt-ruby18.dll was not  
found.”

I also get this output:

C:/Program  
Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wx.rb:12:in  
`require': 126: The specified module could not be found. - C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wxruby2.so (LoadError) from C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wx.rb:12:in`\<top (required)\>’  
from HelloWorld.rb:2:in `require' from HelloWorld.rb:2:in`’

I assume that it’s looking for a legacy library from 1.8.x, how can I  
fix this?

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [February 15, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/compatibility-issues/160351/2 "2009-02-15T14:03:18Z")

</div>

Hi

Peter Wu wrote:

> I’m running Ruby 1.9.1 (Win32) and I installed the  
> wxruby-1.9.10-x86-mswin32-60 gem.

Any binary gem compiled for Ruby 1.8 won’t work with Ruby 1.9.

There’s various ways you can get started using wxRuby with Ruby 1.9 on  
Windows; see the comments on this tracker item:

[http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group\_id=35&atid=218](http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group_id=35&atid=218)

alex

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [February 15, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/compatibility-issues/160351/3 "2009-02-15T18:27:48Z")

</div>

Alex F. wrote:

> Any binary gem compiled for Ruby 1.8 won’t work with Ruby 1.9.
> 
> There’s various ways you can get started using wxRuby with Ruby 1.9 on  
> Windows; see the comments on this tracker item:
> 
> [http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group\_id=35&atid=218](http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group_id=35&atid=218)

So pretty much if I want wxRuby with my currently installed binaries I’m  
going to have to compile my own from source, is that right?

I suspected as much, though I was hoping that I wouldn’t have to.

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [February 15, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/compatibility-issues/160351/4 "2009-02-15T19:02:03Z")

</div>

Peter Wu wrote:

> So pretty much if I want wxRuby with my currently installed binaries I’m  
> going to have to compile my own from source, is that right?

No; as it says, you could first try installing the mingw-ruby19 gem onto  
the mswin build. Download the gem manually then do gem install --force

I haven’t tried this with 1.9, but it works with 1.8. It’s probably not  
recommended for production use.

> I suspected as much, though I was hoping that I wouldn’t have to.

You may find this thread useful:

[http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html](http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html)

I don’t know if these problems were ever resolved.

Since the main ruby distribution for Windows is moving over to MingW,  
fixing support for MSVC builds with Ruby 1.9 hasn’t been a high  
priority. We’ll happily integrate any needed fixes though.

a

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [February 16, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/compatibility-issues/160351/5 "2009-02-16T21:45:18Z")

</div>

Hi,

2009/2/15 Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I haven’t tried this with 1.9, but it works with 1.8. It’s probably not  
> recommended for production use.

I’ve been able to install the mingw-ruby19 gem onto the ruby-1.9.1-p0  
mswin build (from  
ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.1-p0-i386-mswin32.zip).  
But running a wxruby sample causes a crash.

> > I suspected as much, though I was hoping that I wouldn’t have to.
> 
> You may find this thread useful:
> 
> [http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html](http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html)
> 
> I don’t know if these problems were ever resolved.

wxRuby still does not build yet with MSVC for ruby-1.9.1.

Chauk-Mean.
