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 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
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
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
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