nokogiri on jruby

Here’s what I did to be able to use nokogiri (1.4.1) on JRuby jruby 1.5.0.RC3:

  1. jgem install nokogiri
  2. add
    require "java"

    at the top of your script, before require “nokogiri”

  3. overwrite the dll’s in nokogiri’s ext folder with ones from libxml, specifically libxslt-1.1.26.win32.zip and libxml2-2.7.6.win32.zip
  4. run the script with:
    jruby -X+O

    to enable ObjectSpace.



0 Responses to “nokogiri on jruby”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog Stats

  • 238,122 hits

%d bloggers like this: