[CentOS] Failed dependencies for libxslt-ruby on CentOS 6

Wed Oct 19 15:21:03 UTC 2011
Trey Dockendorf <treydock at gmail.com>

I'm trying to install a gem named Fabulator on CentOS 6 CR x86_64.  It's
failing on libxslt-ruby. This is the error I get when trying the gem

# gem install libxslt-ruby --no-rdoc --no-ri
Building native extensions.  This could take a while...
ERROR:  Error installing libxslt-ruby:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for ruby/io.h... no
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... no
checking for libiconv_open() in -liconv... no
checking for libiconv_open() in -llibiconv... no
checking for iconv_open() in -llibiconv... no
checking for iconv_open() in -lc... yes
checking for xmlXPtrNewRange() in -lxml2... yes
checking for libxml/xmlversion.h... no
checking for libxml/xmlversion.h in
/opt/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... yes
checking for xsltApplyStylesheet() in -lxslt... yes
checking for xslt.h... no
checking for xslt.h in
/opt/include/libxslt,/usr/local/include/libxslt,/usr/include/libxslt... yes
checking for exsltRegisterAll() in -lexslt... yes
checking for exslt.h... no
checking for exslt.h in
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
extconf.rb:114: undefined method `find_by_name' for Gem::Specification:Class

Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/libxslt-ruby-1.0.8 for inspection.
Results logged to

I have installed libxslt and libxslt-devel via yum.  I'm running ruby-1.8.7
and gem-1.3.7.   Listing the gems available for xslt, and what catches my
eye is the x86-mingw32 items.  Looking on CentOS 5 I found the package
"mingw32-iconv" in EPEL, but am unsure if that is what would solve this.  If
it is, then could I simply build a CentOS 6 RPM from the SRPM for CentOS 5?
# gem search xslt --both

*** LOCAL GEMS ***

libxslt-ruby19 (0.9.8)
ruby-xslt (0.9.8)


blackwinter-libxslt-ruby (1.0.1)
libxslt-ruby (1.0.8 ruby x86-mingw32, 0.9.6 x86-mswin32-60)
libxslt-ruby-r19mingw1 (0.9.7)
libxslt-ruby19 (0.9.8)
polyrex-xslt (0.1.0)
rexslt (0.1.4)
ruby-xslt (0.9.8)

The gem I'm trying to install, fabulator, has the following dependencies...

# gem dependency fabulator --both
Gem fabulator-0.0.16
  RedCloth (>= 4.2.0, runtime)
  activesupport (>= 2.3.0, runtime)
  libxml-ruby (>= 1.1.3, runtime)
  libxslt-ruby (>= 0.9.7, runtime)
  radius (>= 0.6.1, runtime)

Please let me know what other information may be useful in this case.  This
is for a series of websites running Radiant that I've inherited and this is
all working in FreeBSD though that server is barely hanging on and so I'm
moving to my existing CentOS infrastructure.  I'm about to try RVM but would
prefer to stick with yum based package and version management.

- Trey