Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:34:00+00:00 2026-05-26T23:34:00+00:00

Getting this error: # rails c FFI::NotFoundError: Function ‘xmlRelaxNGSetParserStructuredErrors’ not found in [libxml2.so, libxslt.so,

  • 0

Getting this error:

# rails c
FFI::NotFoundError: Function 'xmlRelaxNGSetParserStructuredErrors' not found in [libxml2.so, libxslt.so, libexslt.so]
   attach_function at /home/prod/.rvm/rubies/jruby-1.6.5/lib/ruby/site_ruby/shared/ffi/library.rb:154
              each at org/jruby/RubyArray.java:1612
   attach_function at /home/prod/.rvm/rubies/jruby-1.6.5/lib/ruby/site_ruby/shared/ffi/library.rb:150
            LibXML at /home/prod/.rvm/gems/jruby-1.6.5@p-ecom1-rails311/gems/nokogiri-1.4.6-java/lib/nokogiri/ffi/libxml.rb:305
          Nokogiri at /home/prod/.rvm/gems/jruby-1.6.5@p-ecom1-rails311/gems/nokogiri-1.4.6-java/lib/nokogiri/ffi/libxml.rb:42
            (root) at /home/prod/.rvm/gems/jruby-1.6.5@p-ecom1-rails311/gems/nokogiri-1.4.6-java/lib/nokogiri/ffi/libxml.rb:41
           require at org/jruby/RubyKernel.java:1038

I have it working on an old server, but seem to have something missing on the new one. The ruby and lib versions seem to be the same on both servers, namely:

ruby -v => jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]

Actually – the java version on the old server is the Oracle version…

Centos 5.7

# yum list | egrep "xslt|xml2"
libxml2.i386                               2.6.26-2.1.12.el5_7.1       installed
libxml2.x86_64                             2.6.26-2.1.12.el5_7.1       installed
libxml2-devel.i386                         2.6.26-2.1.12.el5_7.1       installed
libxml2-devel.x86_64                       2.6.26-2.1.12.el5_7.1       installed
libxml2-python.x86_64                      2.6.26-2.1.12.el5_7.1       installed
libxslt.x86_64                             1.1.17-2.el5_2.2            installed
libxslt-devel.x86_64                       1.1.17-2.el5_2.2            installed

EDIT:
Just tried the Oracle java version to match the old/working box, no joy, although a slightly different error, namely:

$ ruby -v

jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) Server VM 1.6.0_29) [linux-i386-java]

$ rails c

LoadError: Could not open library 'xslt' : xslt: cannot open shared object file: No such file or directory. Could not open library 'libxslt.so' : libxslt.so: cannot open shared object file: No such file or directory
           ffi_lib at /home/prod/.rvm/rubies/jruby-1.6.5/lib/ruby/site_ruby/shared/ffi/library.rb:82
           collect at org/jruby/RubyArray.java:2318

EDIT2:

Tried updating mechanize and nokogiri but seems there are cookie related differences in mechanize 2 – trying to get the github version which seems it should fix this.

EDIT3:

Tried 1.4.7 Nokogiri , but still gives error. For now have installed 1.5 which installs ok – just that it doesnt work in my dev env on OSX. Probably need to raise a bug with nokogiri – but have to write a test program to demonstrate the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:34:00+00:00Added an answer on May 26, 2026 at 11:34 pm

    Is there a reason that you’re using Nokogiri 1.4.6 via FFI? The latest version 1.5.0 comes in the pure Java flavor that might work better for you.

    https://rubygems.org/gems/nokogiri/versions/1.5.0-java

    If the symbol is missing from your libxml2.so, you need the version that has it. On my Mac, I get:

    $ nm /usr/lib/libxml2.dylib  | grep RelaxNGSetParserStructuredErrors
    00000000000a5bcd T _xmlRelaxNGSetParserStructuredErrors
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am getting this error for one of my routes. I'am running Rails
I am getting this error in rails whenever i am trying to create an
Why am I getting this error when trying to use the nested_form Rails plugin?
I am running Rails 3.1.1 and getting this error when running this command. Obviously
Ok, so in my rails project. I'm getting this error, any help? class SearchController
I am getting this error message when I move my Ruby on Rails server
Why am I getting this error? c:\Ruby192>gem install rails Successfully installed activesupport-3.0.9 Successfully installed
I keep getting this error in my production enviroment OpenSSL::SSL::SSLError (hostname was not match
I'm trying to parse JSON in JavaScript, but I'm getting this error in Rails:
I kept getting this error in my Rails app after upgrading to Rails 3.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.