Function 'xsltParseStylesheetDoc' not found in [libxml2.so]

白昼怎懂夜的黑 提交于 2019-12-11 17:36:00

问题


This error comes up in Redhat Enterprise Linux Server 5.4 - 64 bit.

Linux rhl-64-tibbr5 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

There is also this error in the stack trace.

uninitialized constant Nokogiri::VERSION_INFO

More version details:

jruby-1.4.0RC1 ruby/gems/1.8/gems/activesupport-2.3.4

Any idea?


回答1:


After wasting a few hours on this issue, we realized we didn't need nokogiri in our application. So we got it rid of it and these errors disappeared.

Note: these errors show up only on a 64 bit Linux machine ( like RHEL, Oracle Linux etc.,). We didn't see any errors with 32-bit operating systems ( both Win and Linux)




回答2:


I faced similar errors when using Nokogiri with JRuby 1.4.0 (and higher). What turned out to be the problem was that the machine was 64-bit but the JRE that JRuby ended up using was 32-bit. Ensuring that JRuby was run using a 64-bit JRE on a 64-bit machine solved the issues for me.

Some specifics in this blog post.



来源:https://stackoverflow.com/questions/3496857/function-xsltparsestylesheetdoc-not-found-in-libxml2-so

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