Amit Solanki

Avatar

A Ruby On Rails Programmer from India

Undefined symbol: xsltLibxmlVersion - Ruby XSLT and CentOS

If you are facing the following error on your CentOS server:

require 'xml/xslt'
LoadError: /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.6/lib/xml/xslt_lib.so: undefined symbol: xsltLibxmlVersion - /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.6/lib/xml/xslt_lib.so
	from /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.6/lib/xml/xslt_lib.so
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.6/lib/xml/xslt.rb:19
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
	from (irb):1

Try reinstalling the following packages and gems:

yum reinstall -y libxml2 libxml2-devel libxslt libxslt-devel
ldconfig
gem uninstall libxml-ruby ruby-xslt
gem install libxml-ruby ruby-xslt

Don’t forget to run ldconfig command as root user. This command creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line. More details on the command can be found here.

No Comments, Comment or Ping

Reply to “Undefined symbol: xsltLibxmlVersion - Ruby XSLT and CentOS”

Before you go

Going so soon? May these links be a guide to web enlightenment.