tenderlove/nokogiri — Issue #601: Solaris SmartMachine 2.6.1 - Packaged Ruby 1.9/rbenv rubies can't find libxslt.so
Author: n-time
Created: 2012-01-19 18:58:39+00:00
State: open

Whether you use pkgin to install Ruby 1.9.2 or use rbenv to install any ruby version, nokogiri crashes with the following error:

```
-bash-4.1$ nokogiri
/home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/nokogiri.so: ld.so.1: ruby: fatal: libxslt.so.1: open failed: No such file or directory - /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/nokogiri.so (LoadError)
from /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri.rb:27
from /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/jill/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/nokogiri-1.5.0/bin/nokogiri:7
from /home/jill/.rbenv/versions/1.8.7-p357/bin/nokogiri:19:in `load'
from /home/jill/.rbenv/versions/1.8.7-p357/bin/nokogiri:19
```

I tried installing nokogiri with a number of configurations of --with-xslt-lib --with-xml-lib and so on, to no success.