Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created November 1, 2008 05:16
Show Gist options
  • Save jc00ke/21473 to your computer and use it in GitHub Desktop.
Save jc00ke/21473 to your computer and use it in GitHub Desktop.
chino ~: sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2/lib
(in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2)
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... no
checking for libxml/xmlversion.h in /usr/include/libxml2,/usr/include/libxml2... no
need libxml
*** 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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-xml2lib
--without-xml2lib
--with-xsltlib
--without-xsltlib
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 extconf.rb...]
/usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2/Rakefile:91
(See full trace by running task with --trace)
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.2/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment