How to use nokogiri from Jruby on Windows?

前端 未结 3 1687
温柔的废话
温柔的废话 2021-01-25 04:12

I\'m getting the following error when trying to use Nokogiri with Jruby on Windows 7

D:\\code\\h4>jruby -e \"require \'rubygems\'; require \'nokogiri\'\"
D:/j         


        
3条回答
  •  时光取名叫无心
    2021-01-25 05:11

    It is true that you need the xml2 / libxslt dlls in your path.

    However, I have found it necessary to update to jruby-1.4.0RC2 (for some FFI improvements I believe).

    Also, need to update to the latest nokogiri 1.3.3 & manually apply the following commit:

    http://github.com/tenderlove/nokogiri/commit/0555c69e70083a6368b563f18da2c8d5416515cc

    OR install nokogiri from github trunk.

    I hope this is helpful.

    Useful background links:

    • http://jira.codehaus.org/browse/JRUBY-3781
    • http://github.com/tenderlove/nokogiri/issues/closed/#issue/137
    • http://jira.codehaus.org/browse/JRUBY-4052
    • http://kenai.com/jira/browse/RUBY_FFI-46

提交回复
热议问题