Skip to content

Instantly share code, notes, and snippets.

@benhamill
Created August 19, 2011 18:01
Show Gist options
  • Save benhamill/1157513 to your computer and use it in GitHub Desktop.
Save benhamill/1157513 to your computer and use it in GitHub Desktop.
$ gem install nokogiri --version=1.4.4 -- --with-xml2-include=/usr/include/libxml2/
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/ben/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-xml2-include=/usr/include/libxml2/
checking for libxml/parser.h... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/home/ben/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
Gem files will remain installed in /home/ben/.rvm/gems/ree-1.8.7-2011.03@otherinbox/gems/nokogiri-1.4.4 for inspection.
Results logged to /home/ben/.rvm/gems/ree-1.8.7-2011.03@otherinbox/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
$ ls /usr/include/libxml2/libxml/parser.h
/usr/include/libxml2/libxml/parser.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment