From: Robert Heller Date: 2008-09-17T11:52:41+09:00 Subject: Gem program -- cannot install libxslt-ruby-0.3.6.gem 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% 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% 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% gem --version 0.9.0 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) functioning. -- Robert Heller -- Get the Deepwoods Software FireFox Toolbar! Deepwoods Software -- Linux Installation and Administration http://www.deepsoft.com/ -- Web Hosting, with CGI and Database heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk