Why does Ruby installed with RubyInstaller not find the dll in the gem / lib folder?

My system: windows 7 x64.

I have installed:

  • ruby from RubyInstaller (1.8.7)
  • gem install rake
  • gem install libxml-ruby --platform = mswin32

Now when I do:

require 'xml' 

I get the error libxml2-2.dll (and libiconv-2.dll). I can find these two libraries in "Ruby187 \ lib \ ruby ​​\ gems \ 1.8 \ gems \ libxml-ruby-1.1.4-x86-mswin32-60 \ lib \ '. When I copy them to the folder" Ruby187 \ bin ", everything works.

But...

If I install ruby ​​from the old OneClick installer, libxml-ruby works without copying these dlls to the ruby ​​\ bin folder. I looked at the PATH variable - this does not point to the libxml-ruby lib folder, so IMHO ruby ​​finds them in some other way.

And the question. What can I do, so does Ruby from RubyInstaller work similarly with OneClick Installer? I do not want to add the \ lib folder to PATH (OneClick Installer does not need this), and I do not want to copy the dll to Ruby \ bin

+4
source share
1 answer

You can also try the RubyStack installer if you do not use it. (I have work with many gems, in Win 7 64 bit, no problems today ...)

0
source

All Articles