# Latest Windows setup

**URL:** <https://www.ruby-forum.com/t/latest-windows-setup/191973>\
**Category:** wxRuby\
**Created:** [July 21, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973 "2010-07-21T15:52:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [July 21, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973/1 "2010-07-21T15:52:52Z")

</div>

I’m trying to use the latest Ruby for Windows but get the following  
error when I require wx.

ruby.exe - Unable To Locate Component

This application has failed to start because msvcrt-ruby18.dll was not  
found. Re-installing the application may fix this problem.

I did a fresh install of Ruby 1.9.1 from [RubyInstaller.org](http://RubyInstaller.org), followed by  
gem install wxruby. I ran irb from the C:\Ruby191\bin directory to make  
sure I was running the right Ruby version.

I noticed that one of the documentation files said there was a bug in  
the gem installer necessitating a manual install to get the right  
version, but since that was over a year ago, I was hoping that issue has  
been corrected. Do I still need to do a manual install?

Jamal

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [July 21, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973/2 "2010-07-21T15:55:13Z")

</div>

Jamal M. wrote:

> by gem install wxruby. I ran irb from the C:\Ruby191\bin directory to  
> make sure I was running the right Ruby version.

It looks like you’ve installed a Ruby 1.8 gem onto Ruby 1.9. Try gem  
install wxruby-ruby19

cheers  
alex

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [July 23, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973/3 "2010-07-23T16:03:46Z")

</div>

Thanks – that worked. I found that I also had to  
gem uninstall wxruby

Is it still necessary to require rubygems if wxruby was installed as a  
gem? A test program seems to run fine without that, but I want to make  
sure there are not negative side effects.

Jamal

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [July 23, 2010, 10:31pm UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973/4 "2010-07-23T22:31:21Z")

</div>

Hello Jamal,

It is best to require rubygems, as generally not all systems have  
RUBYOPT  
set, which is the Environment variable that contains the -rubygems  
option,  
which is more then likely setup on your system. If RUBYOPT isn’t set,  
then  
RubyGems is never required.

hth,  
Mario

---

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [July 24, 2010, 1:13am UTC](https://www.ruby-forum.com/t/latest-windows-setup/191973/5 "2010-07-24T01:13:30Z")

</div>

Thanks, Mario and Alex! In this case, I am building a Windows  
executable with Ocra and Ruby 1.9, so I infer that requiring rubygems is  
not needed.

BTW, I am excited that a contemporary Ruby installer for Windows has  
finally been released! It had been a bummer having to use an outdated  
Ruby version on Windows. Now I am exploring compatibility issues. Can  
anyone confirm that Ruby 1.9.1 for Windows can run Rails without  
significant problems? Do Watir and Ruport run fine with the latest Ruby  
for Windows? I realize this is straying from the list subject, but I am  
not subscribed to any other Ruby lists at present, so hope for any  
answers I can get.

Jamal
