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, 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
Jamal Mazrui wrote:> 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, followed > 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
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 On 7/21/2010 9:54 AM, Alex Fenton wrote:> Jamal Mazrui wrote: >> 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, followed >> 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 > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
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 On Fri, Jul 23, 2010 at 8:58 AM, Jamal Mazrui <empower at smart.net> wrote:> 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 > > > On 7/21/2010 9:54 AM, Alex Fenton wrote: > >> Jamal Mazrui wrote: >> >>> 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, followed >>> 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 >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-- Mario Steele Lieutenant Commander 3 XO - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.trekfederation.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20100723/d9a47bce/attachment.html>
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 On 7/23/2010 4:25 PM, Mario Steele wrote:> 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 > > On Fri, Jul 23, 2010 at 8:58 AM, Jamal Mazrui <empower at smart.net > <mailto:empower at smart.net>> wrote: > > 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 > > > On 7/21/2010 9:54 AM, Alex Fenton wrote: > > Jamal Mazrui wrote: > > 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, > followed > 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 > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org <mailto:wxruby-users at rubyforge.org> > http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org <mailto:wxruby-users at rubyforge.org> > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > -- > Mario Steele > Lieutenant Commander 3 > XO - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.trekfederation.com > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users