From: Ross Bamford Date: 2006-03-11T17:37:42+09:00 Subject: Re: gem + libxml On Sat, 2006-03-11 at 05:45 +0900, Mikael Larsson wrote: > Hi > > Wat is wrong here ?? Do I need ruby source? > > linux:~ # > linux:~ # ruby -v > ruby 1.8.2 (2004-12-25) [i586-linux] > linux:~ # gem -v > 0.8.11 > linux:~ # gem install libxml-ruby > Attempting local installation of 'libxml-ruby' > Local gem file not found: libxml-ruby*.gem > Attempting remote installation of 'libxml-ruby' > Building native extensions. This could take a while... > can't find header files for ruby. > ERROR: While executing gem ... (RuntimeError) > ERROR: Failed to build gem native extension. > Gem files will remain installed in > /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6 for inspection. > ruby extconf.rb install libxml-ruby\n > > Results logged to > /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out > linux:~ # cat > /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.6/ext/xml/gem_make.out > ruby extconf.rb install libxml-ruby > linux:~ # Hmm, I think that the Ruby headers should always be installed, in your case it looks like they should be at: /usr/lib/ruby/1.8/i586-linux/ Could you verify the presence (or absence) of a bunch of .h files at that location? If they're not there, then you should probably grab a new Ruby install (is this one a package from your distro?). -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk