# "msvcrt-ruby.ruby1818.dll not found" on wxruby-2.0.1 mingw32

**URL:** <https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233>\
**Category:** wxRuby\
**Created:** [September 10, 2009, 1:41am UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233 "2009-09-10T01:41:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2009, 1:41am UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/1 "2009-09-10T01:41:27Z")

</div>

Hi all,

Just upgraded to wxruby-2.0.1-x86-mingw32 (from 2.0.0), got an error  
when starting my app.

“The application has failed to start because msvcrt-ruby1818.dll was  
not found. Re-installing the application may fix this problem.”

Uninstalled v2.0.1, the application started OK.

My env:  
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] on Windows XP  
(from [http://rubyforge.org/frs/?group\_id=167&release\_id=38052](http://rubyforge.org/frs/?group_id=167&release_id=38052))

Cheers,  
Zhimin

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2009, 9:09am UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/2 "2009-09-10T09:09:13Z")

</div>

Hi,

2009/9/10 Zhimin Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Just upgraded to wxruby-2.0.1-x86-mingw32 (from 2.0.0), got an error  
> when starting my app.
> 
> “The application has failed to start because msvcrt-ruby1818.dll was  
> not found. Re-installing the application may fix this problem.”

Strange. The dll should be in the ruby-1.8 installation (in the bin  
folder).  
I’ll take a look at the ruby distribution you indicated.

The (Windows) environment used to build wxRuby MinGW gems is the  
following :

- MSYS-1.0.11
- Latest stable MinGW headers, libs, … with gcc-3.4.5 and g+±3.4.5
- ruby-1.8 and ruby-1.9 builds with only the --prefix option.  
(e.g. ./configure --prefix=C:/opt/ruby-1.8)

You can also take a look at the wxruby all in one ruby-1.9 installer.

Cheers.  
Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/3 "2009-09-10T20:13:44Z")

</div>

Hi (again) Zhimian,

2009/9/10 Zhimin Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Just upgraded to wxruby-2.0.1-x86-mingw32 (from 2.0.0), got an error  
> when starting my app.
> 
> “The application has failed to start because msvcrt-ruby1818.dll was  
> not found. Re-installing the application may fix this problem.”

I’ve found the problem.  
For ruby-1.8, I’ve used the program-suffix option (./configure  
–prefix=C:/opt/ruby-1.8 --program-suffix=18) in order to have  
ruby-1.9 and ruby-1.8 usable at the same time respectively through  
ruby and ruby18 executables.  
The consequence is that the 18 suffix is also applied to the ruby-1.8  
dll.

I’m rebuilding right now the wxRuby-2.0.1 gem for ruby-1.8 and I will  
upload it.  
Sorry for the inconvenience.

Cheers.  
Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 11, 2009, 12:41am UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/4 "2009-09-11T00:41:50Z")

</div>

Chauk-Mean,

It works now, thanks!

Regards,  
Zhimin

Chauk-Mean P. wrote:

> 2009/9/10 Chauk-Mean P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > I’m rebuilding right now the wxRuby-2.0.1 gem for ruby-1.8 and I will upload it.
> 
> Done.
> 
> Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/5 "2009-09-10T21:10:31Z")

</div>

2009/9/10 Chauk-Mean P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I’m rebuilding right now the wxRuby-2.0.1 gem for ruby-1.8 and I will upload it.

Done.

Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [December 21, 2009, 8:20am UTC](https://www.ruby-forum.com/t/msvcrt-ruby-ruby1818-dll-not-found-on-wxruby-2-0-1-mingw32/175233/6 "2009-12-21T08:20:28Z")

</div>

Zhimin Z. wrote:

> Hi all,
> 
> Just upgraded to wxruby-2.0.1-x86-mingw32 (from 2.0.0), got an error  
> when starting my app.
> 
> “The application has failed to start because msvcrt-ruby1818.dll was  
> not found. Re-installing the application may fix this problem.”
> 
> Uninstalled v2.0.1, the application started OK.
> 
> My env:  
> ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] on Windows XP  
> (from [http://rubyforge.org/frs/?group\_id=167&release\_id=38052](http://rubyforge.org/frs/?group_id=167&release_id=38052))
> 
> Cheers,  
> Zhimin

Hi! What I did, was:  
gem uninstall wxruby  
gem install wxruby-ruby19

Now the ruby started to use the \*-ruby191.dll. I first installed the  
wxruby only. As a newbie I just followed the tutorials I found. But  
reading the INSTALL document from wxruby gem, pointed me to this  
direction.. And now at least samples will run.
