Forum: wxRuby Latest Windows setup

Posted by Jamal Mazrui (Guest)
on 2010-07-21 15:52
(Received via mailing list)
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
Posted by Alex Fenton (Guest)
on 2010-07-21 15:55
(Received via mailing list)
Jamal Mazrui 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
Posted by Jamal Mazrui (Guest)
on 2010-07-23 16:03
(Received via mailing list)
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
Posted by Mario Steele (Guest)
on 2010-07-23 22:31
(Received via mailing list)
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
Posted by Jamal Mazrui (Guest)
on 2010-07-24 01:13
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.