# Gem program -- cannot install libxslt-ruby-0.3.6.gem

**URL:** <https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790>\
**Category:** Ruby\
**Created:** [September 17, 2008, 5:00am UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790 "2008-09-17T05:00:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 5:00am UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/1 "2008-09-17T05:00:33Z")

</div>

I am trying to install some version of libxslt-ruby on my CentOS 4.7  
Linux system, and I am getting this error:

[sauron.deepsoft.com](http://sauron.deepsoft.com)% sudo gem install libxslt-ruby-0.3.6.gem  
Password:  
Building native extensions. This could take a while…  
extconf.rb:58: undefined method `find\_header’ for main:Object  
(NoMethodError)

ERROR: Error installing gem libxslt-ruby-0.3.6.gem[.gem]: ERROR: Failed  
to build gem native extension.  
Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.3.6 for inspection.

Results logged to  
/usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.3.6/ext/xml/gem\_make.out

My version of ruby is the stock version for CentOS 4.7:

[sauron.deepsoft.com](http://sauron.deepsoft.com)% rpm -qa | grep ruby  
ruby-1.8.1-7.el4\_6.1  
ruby-libs-1.8.1-7.el4\_6.1  
ruby-devel-1.8.1-7.el4\_6.1  
ruby-docs-1.8.1-7.el4\_6.1  
ruby-tcltk-1.8.1-7.el4\_6.1  
ruby-mode-1.8.1-7.el4\_6.1  
[sauron.deepsoft.com](http://sauron.deepsoft.com)% gem --version  
0.9.0  
[sauron.deepsoft.com](http://sauron.deepsoft.com)% gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (1.2.5)  
Service layer for easy email delivery and testing.

actionpack (1.12.5)  
Web-flow and rendering framework putting the VC in MVC.

actionwebservice (1.1.6)  
Web service support for Action Pack.

activerecord (1.14.4)  
Implements the ActiveRecord pattern for ORM.

activesupport (1.3.1)  
Support and utility classes used by the Rails framework.

libxml-ruby (0.3.6)  
LibXML2 bindings for Ruby

rails (1.1.6)  
Web-application framework with template engine, control-flow layer,  
and ORM.

rake (0.7.1)  
Ruby based make-like utility.

rubygems-update (1.0.0, 0.9.2, 0.9.1)  
RubyGems Update GEM

sources (0.0.1)  
This package provides download sources for remote gem installation

I’ve narrowed things down to a problem with mkmf.rb – it is missing a  
method named find\_header. I don’t really know ruby, but if someone can  
send me a suitable code fragment, I can certainly patch mkmf.rb. I just  
want to get ‘spock’ ([http://hyperstruct.net/projects/spock](http://hyperstruct.net/projects/spock)) functioning.

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 9:49am UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/2 "2008-09-17T09:49:56Z")

</div>

> I’ve narrowed things down to a problem with mkmf.rb – it is missing a  
> method named find\_header. I don’t really know ruby, but if someone can  
> send me a suitable code fragment, I can certainly patch mkmf.rb.

Well, the latest is available at  
[http://svn.ruby-lang.org/repos/ruby/branches/ruby\_1\_8/lib/mkmf.rb](http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8/lib/mkmf.rb)

However, I found all sorts of things didn’t work with 1.8.1 (which is  
really ancient), so under RHEL 4 I moved to the 1.8.5 packages from the  
CentOS testing repository:  
[http://dev.centos.org/centos/4/testing/i386/RPMS/](http://dev.centos.org/centos/4/testing/i386/RPMS/)  
and everything was fine. If at all possible in your situation, I’d  
strongly recommend it.

Regards,

Brian.

P.S. To get even more up-to-date, you could consider rebuilding the  
RHEL5 or Fedora packages for CentOS 4. You need to change one line in  
the .spec file (dependency on libX11-devel needs to be changed to  
xorg-x11-devel)

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/3 "2008-09-17T18:11:55Z")

</div>

At Wed, 17 Sep 2008 02:43:39 -0500 Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> CentOS testing repository:  
> [http://dev.centos.org/centos/4/testing/i386/RPMS/](http://dev.centos.org/centos/4/testing/i386/RPMS/)  
> and everything was fine. If at all possible in your situation, I’d  
> strongly recommend it.

It still does not work:

/usr/local/share/bard-spock/spock update.rdf -i  
removed\_email\_address@domain.invalid -d ~/.mozilla/mccoy/08c43j81.default/

> update.rdf.signed  
> /usr/local/share/bard-spock/normalize\_update\_rdf.rb:22:in `require': no such file to load -- xml/libxslt (LoadError) from /usr/local/share/bard-spock/normalize_update_rdf.rb:22 from /usr/local/share/bard-spock/spock:53:in `require’  
> from /usr/local/share/bard-spock/spock:53

I upgraded to the ruby-1.8.5 pavkages from the centos 4 testing repo,  
downloaded and did a ‘gem install’ of libxml-ruby and libxslt-ruby:

[sauron.deepsoft.com](http://sauron.deepsoft.com)% wget -c  
[http://rubyforge.rubyuser.de/gems/libxml-ruby-0.8.3.gem](http://rubyforge.rubyuser.de/gems/libxml-ruby-0.8.3.gem)  
[http://rubyforge.rubyuser.de/gems/libxslt-ruby-0.8.2.gem](http://rubyforge.rubyuser.de/gems/libxslt-ruby-0.8.2.gem)  
–11:49:35-- [http://rubyforge.rubyuser.de/gems/libxml-ruby-0.8.3.gem](http://rubyforge.rubyuser.de/gems/libxml-ruby-0.8.3.gem)  
=\> `libxml-ruby-0.8.3.gem’  
Resolving [rubyforge.rubyuser.de](http://rubyforge.rubyuser.de)… 80.237.222.133  
Connecting to rubyforge.rubyuser.de|80.237.222.133|:80… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 167,424 (164K) [application/octet-stream]

100%[====================================\>] 167,424 2.50K/s  
ETA 00:00

11:50:43 (2.42 KB/s) - `libxml-ruby-0.8.3.gem’ saved [167424/167424]

–11:50:43-- [http://rubyforge.rubyuser.de/gems/libxslt-ruby-0.8.2.gem](http://rubyforge.rubyuser.de/gems/libxslt-ruby-0.8.2.gem)  
=\> `libxslt-ruby-0.8.2.gem’  
Connecting to rubyforge.rubyuser.de|80.237.222.133|:80… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 37,376 (36K) [application/octet-stream]

100%[====================================\>] 37,376 2.49K/s  
ETA 00:00

11:50:59 (2.49 KB/s) - `libxslt-ruby-0.8.2.gem’ saved [37376/37376]

FINISHED --11:50:59–  
Downloaded: 204,800 bytes in 2 files  
[sauron.deepsoft.com](http://sauron.deepsoft.com)% sudo gem install libxml-ruby libxslt-ruby  
Password:  
Building native extensions. This could take a while…  
ruby extconf.rb install libxml-ruby libxslt-ruby  
checking for socket() in -lsocket… no  
checking for gethostbyname() in -lnsl… yes  
checking for atan() in -lm… no  
checking for atan() in -lm… yes  
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 xmlParseDoc() in -lxml2… yes  
checking for libxml/xmlversion.h… yes  
checking for xmlDocFormatDump()… yes  
checking for docbCreateFileParserCtxt()… yes  
creating extconf.h  
creating Makefile

make  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c cbg.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c libxml.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_attr.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_attributes.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_document.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_dtd.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_html\_parser.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_input\_cbg.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_node.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_node\_set.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_ns.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_parser.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_parser\_context.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_reader.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_relaxng.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_sax\_parser.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_schema.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_state.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xinclude.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xpath.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xpath\_context.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xpath\_object.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xpointer.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I. -I/usr/local/include  
-DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g -pipe -m32 -march=i386  
-mtune=pentium4 -Wall -fPIC -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/local/include -c ruby\_xml\_xpointer\_context.c  
gcc -shared -rdynamic -Wl,-export-dynamic -L"/usr/lib" -L"/usr/lib" -o  
libxml\_ruby.so cbg.o libxml.o ruby\_xml\_attr.o ruby\_xml\_attributes.o  
ruby\_xml\_document.o ruby\_xml\_dtd.o ruby\_xml\_html\_parser.o  
ruby\_xml\_input\_cbg.o ruby\_xml\_node.o ruby\_xml\_node\_set.o ruby\_xml\_ns.o  
ruby\_xml\_parser.o ruby\_xml\_parser\_context.o ruby\_xml\_reader.o  
ruby\_xml\_relaxng.o ruby\_xml\_sax\_parser.o ruby\_xml\_schema.o  
ruby\_xml\_state.o ruby\_xml\_xinclude.o ruby\_xml\_xpath.o  
ruby\_xml\_xpath\_context.o ruby\_xml\_xpath\_object.o ruby\_xml\_xpointer.o  
ruby\_xml\_xpointer\_context.o -lruby -lxml2 -lc -lz -lm -lnsl -lpthread  
-ldl -lcrypt -lm -lc

make install  
/usr/bin/install -c -m 0755 libxml\_ruby.so  
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.3/lib

make clean  
Successfully installed libxml-ruby, version 0.8.3  
Installing ri documentation for libxml-ruby-0.8.3…

No definition for ruby\_xml\_html\_parser\_new\_file

No definition for ruby\_xml\_html\_parser\_new\_io

No definition for ruby\_xml\_html\_parser\_filename\_get

No definition for ruby\_xml\_html\_parser\_filename\_set

No definition for ruby\_xml\_html\_parser\_io\_get

No definition for ruby\_xml\_html\_parser\_io\_set

No definition for input\_callbacks\_add\_scheme

No definition for input\_callbacks\_remove\_scheme

No definition for ruby\_xml\_node2\_new\_native

No definition for ruby\_xml\_parser\_context\_options\_get

No definition for ruby\_xml\_parser\_context\_options\_set

Enclosing class/module ‘cXMLSaxParser’ for module Callbacks not known  
Installing RDoc documentation for libxml-ruby-0.8.3…

No definition for ruby\_xml\_html\_parser\_new\_file

No definition for ruby\_xml\_html\_parser\_new\_io

No definition for ruby\_xml\_html\_parser\_filename\_get

No definition for ruby\_xml\_html\_parser\_filename\_set

No definition for ruby\_xml\_html\_parser\_io\_get

No definition for ruby\_xml\_html\_parser\_io\_set

No definition for input\_callbacks\_add\_scheme

No definition for input\_callbacks\_remove\_scheme

No definition for ruby\_xml\_node2\_new\_native

No definition for ruby\_xml\_parser\_context\_options\_get

No definition for ruby\_xml\_parser\_context\_options\_set

Enclosing class/module ‘cXMLSaxParser’ for module Callbacks not known  
Building native extensions. This could take a while…  
ruby extconf.rb install libxml-ruby libxslt-ruby  
checking for atan() in -lm… no  
checking for atan() in -lm… yes  
checking for inflate() in -lz… yes  
checking for xmlXPtrNewRange() in -lxml2… yes  
checking for libxml/xmlversion.h… yes  
checking for xsltApplyStylesheet() in -lxslt… yes  
checking for xslt.h… no  
checking for #include \<xslt.h\>  
… yes  
checking for libxml/ruby\_libxml.h… yes  
checking for libxml/ruby\_xml\_document.h… yes  
creating extconf.h  
creating Makefile

make  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.3/ext  
-I/usr/include/libxslt -DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g  
-pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -c libxslt.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.3/ext  
-I/usr/include/libxslt -DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g  
-pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -c  
ruby\_xslt\_stylesheet.c  
gcc -I. -I. -I/usr/lib/ruby/1.8/i386-linux -I.  
-I/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.3/ext  
-I/usr/include/libxslt -DRUBY\_EXTCONF\_H="extconf.h" -fPIC -O2 -g  
-pipe -m32 -march=i386 -mtune=pentium4 -Wall -fPIC -c  
ruby\_xslt\_transform\_context.c  
gcc -shared -L"/usr/lib" -L"/usr/lib" -o libxslt\_ruby.so libxslt.o  
ruby\_xslt\_stylesheet.o ruby\_xslt\_transform\_context.o -lruby -lxslt  
-lxml2 -lz -lm -lpthread -ldl -lcrypt -lm -lc

make install  
/usr/bin/install -c -m 0755 libxslt\_ruby.so  
/usr/lib/ruby/gems/1.8/gems/libxslt-ruby-0.8.2/lib

make clean  
Successfully installed libxslt-ruby, version 0.8.2  
Installing ri documentation for libxslt-ruby-0.8.2…  
While generating documentation for libxslt-ruby-0.8.2  
… MESSAGE: Unhandled special: Special: type=33, text=“The”  
… RDOC args: --ri --op /usr/lib/ruby/gems/1.8/doc/libxslt-ruby-0.8.2/ri  
–quiet lib ext/libxslt  
(continuing with the rest of the installation)  
Installing RDoc documentation for libxslt-ruby-0.8.2…

What do I need to do now???

All I really want to do is sign a couple of FF3 Toolbar extensions in  
a Makefile using a pure CLI command, and not have to manually sign them  
with a pointy-clicky tool!

I may end up re-writing this spock tool in Tcl.

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/4 "2008-09-17T20:46:20Z")

</div>

At Wed, 17 Sep 2008 11:24:02 -0500 Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Robert Heller wrote:
> 
> > /usr/local/share/bard-spock/normalize\_update\_rdf.rb:22:in `require’: no  
> > such file to load – xml/libxslt (LoadError)
> 
> Have you done ‘require “rubygems”’ ?
> 
> I’m not familiar with libxslt at all. Check you have  
> /usr/lib/ruby/gems/1.8/gems//lib/xml/libxslt.rb

It is not my code. I guess I will need to ‘blindly’ hack  
normalize\_update\_rdf.rb…

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/5 "2008-09-17T18:31:32Z")

</div>

Robert Heller wrote:

> /usr/local/share/bard-spock/normalize\_update\_rdf.rb:22:in `require’: no  
> such file to load – xml/libxslt (LoadError)

Have you done ‘require “rubygems”’ ?

I’m not familiar with libxslt at all. Check you have  
/usr/lib/ruby/gems/1.8/gems//lib/xml/libxslt.rb

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/6 "2008-09-17T23:00:45Z")

</div>

At Wed, 17 Sep 2008 13:32:55 -0700 (PDT) Mark T.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > All I really want to do is sign a couple of FF3 Toolbar extensions in  
> > a Makefile using a pure CLI command, and not have to manually sign them  
> > with a pointy-clicky tool!
> 
> How exactly does libxslt help you do this?

It is used by the ‘spock’ program, which is written in Ruby as a CLI  
‘hack’ that allowed the author (of spock) to sign his nightly built  
packages (built on a headless server). FF3 extensions use an XML file  
(update.rdf) and libxslt is used to parse this file as part of the  
process of ‘signing’ it (computing a signature from the file’s contents  
and a private key (the public key is in the installer file,  
install.rdf). This is so FF3 can verify that the update.rdf is  
ligitimate.

The Mozilla Dev crew have this xulrunner application, mccoy, which is a  
GUI application for creating key pairs and for signing FF3 extensions.  
It is not something that is useful for people who use make and/or  
other automated build processes (like ant), esp. not on unattended build  
servers.

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 18, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/7 "2008-09-18T19:16:12Z")

</div>

One of the comments on the spock blog says:

> Instructions how to get it work on FC8. …  
> You have to download [http://gregoire.lejeune.free.fr/ruby-xslt\_0.9.3.tar.gz](http://gregoire.lejeune.free.fr/ruby-xslt_0.9.3.tar.gz)  
> Follow instructions there (ruby extconf.rb; make; make doc; make install)  
> This will leave xslt.rb in /usr/lib/ruby/site\_ruby/1.8/xml/xslt.rb
> 
> Apparently, Ruby needs libxslt.rb there, so do:  
> sudo mv /usr/lib/ruby/site\_ruby/1.8/xml/xslt.rb  
> /usr/lib/ruby/site\_ruby/1.8/xml/libxslt.rb
> 
> Subsequently, spock runs.

Maybe that will help?

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 17, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/8 "2008-09-17T22:37:16Z")

</div>

> All I really want to do is sign a couple of FF3 Toolbar extensions in  
> a Makefile using a pure CLI command, and not have to manually sign them  
> with a pointy-clicky tool!

How exactly does libxslt help you do this?

---

<div class="post-metadata">

**Author:** ![Robert\_Heller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/858c86/32.png) [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Post date:** [September 18, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790/9 "2008-09-18T21:41:34Z")

</div>

At Thu, 18 Sep 2008 10:13:48 -0700 (PDT) Mark T.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > /usr/lib/ruby/site\_ruby/1.8/xml/libxslt.rb
> > 
> > Subsequently, spock runs.
> 
> Maybe that will help?

Sort of. I needed additional munging around with links to make the  
spock code happy (it seems to have a different idea of where and what  
ruby-xslt installs than what either the libxslt-ruby gem or the  
ruby-xslt tarball, although the ruby-xslt tarball came closer).
