cannot load such file — libxml_ruby for Windows

两盒软妹~` 提交于 2019-12-03 17:24:35

Had similar problem on Windows 7x64 with libxml-ruby 2.3.3 (Ruby 2, 1.9.3 and 1.9.2). As per this solution:

https://github.com/xml4r/libxml-ruby/issues/42#issuecomment-7040881

I managed my problem was also solved. Solution (thanks to the original author):

  1. Locate 'libxml.rb' in libxml-ruby gem folder (something like 'C:\Ruby\Ruby192\lib\ruby\gems\1.9.1\gems\libxml-ruby-2.3.3-x86-mingw32\lib')
  2. Add the following on top of the file:

    ENV['PATH'] = ENV['PATH'] + ';' + File.expand_path(File.dirname(__FILE__) + '/libs')

  3. Save and enjoy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!