possible to load nokogiri in jruby without installing nokogiri-java?

我是研究僧i 提交于 2019-12-04 16:56:16

Nokogiri works just fine under JRuby (1.4.0 has issues, but the 1.4.1 version of the gem has been working perfect for me).

jruby -S gem install nokogiri

and if you have issues with platform detection you can force it:

jruby -S gem install nokogiri --platform=java

You shouldn't have any issues using it with JRuby, if you are then maybe you're stack isn't right.

Nokogiri should work under FFI in JRuby. See http://www.ruby-forum.com/topic/186274

Nokogiri should just work with JRuby via FFI, so it seems to me that the best course of action is just figure out why installing nokogiri in JRuby doesn't work for you.

What kind of problems you see? What JRuby version? What platform?

Here's an example of a situation where it would appear that the Java implementation of Nokogiri is producing different results from the C version, which is causing the loofah gem to fail a bunch of JRuby tests. This is blocking the ability of the Redmine developers from supporting JRuby.

https://github.com/flavorjones/loofah/issues/88#issuecomment-122747924

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