New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of nokogiri 1.6.2 fails with use-system-libraries enabled on ubuntu 12.04 #1099

Closed
hyfather opened this Issue May 13, 2014 · 35 comments

Comments

Projects
None yet
@hyfather

hyfather commented May 13, 2014

Not sure if similar to #1098 since I'm attempting to use system libs here.
1.6.1 works fine with this method.

Pasting verbose gem installation log here --

root@idx1:~# export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
root@idx1:~# gem install --vebose nokogiri -v 1.6.2
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --vebose
root@idx1:~# gem install nokogiri -v 1.6.2 --verbose
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem nokogiri-1.6.2
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/.autotest
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/.editorconfig
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/.gemtest
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/.travis.yml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/CHANGELOG.ja.rdoc
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/CHANGELOG.rdoc
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/C_CODING_STYLE.rdoc
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/Gemfile
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/Manifest.txt
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/README.ja.rdoc
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/README.rdoc
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ROADMAP.md
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/Rakefile
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/STANDARD_RESPONSES.md
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/Y_U_NO_GEMSPEC.md
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/bin/nokogiri
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/build_all
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/dependencies.yml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/depend
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/extconf.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_document.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_document.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_element_description.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_element_description.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_entity_lookup.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_entity_lookup.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_sax_parser_context.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_sax_parser_context.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_sax_push_parser.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/html_sax_push_parser.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/nokogiri.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/nokogiri.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_attr.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_attr.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_attribute_decl.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_attribute_decl.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_cdata.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_cdata.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_comment.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_comment.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_document.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_document.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_document_fragment.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_document_fragment.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_dtd.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_dtd.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_element_content.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_element_content.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_element_decl.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_element_decl.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_encoding_handler.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_encoding_handler.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_entity_decl.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_entity_decl.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_entity_reference.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_entity_reference.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_io.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_io.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_libxml2_hacks.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_libxml2_hacks.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_namespace.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_namespace.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_node.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_node.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_node_set.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_node_set.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_processing_instruction.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_processing_instruction.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_reader.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_reader.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_relax_ng.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_relax_ng.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_parser.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_parser.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_parser_context.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_parser_context.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_push_parser.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_sax_push_parser.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_schema.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_schema.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_syntax_error.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_syntax_error.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_text.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_text.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_xpath_context.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xml_xpath_context.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xslt_stylesheet.c
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/xslt_stylesheet.h
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/parser.y
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/parser_extras.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/syntax_error.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/tokenizer.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/tokenizer.rex
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/css/xpath_visitor.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/decorators/slop.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/builder.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/document.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/document_fragment.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/element_description.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/element_description_defaults.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/entity_lookup.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/sax/parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/sax/parser_context.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/html/sax/push_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/syntax_error.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/version.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/attr.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/attribute_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/builder.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/cdata.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/character_data.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/document.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/document_fragment.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/dtd.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/element_content.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/element_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/entity_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/namespace.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/node/save_options.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/node_set.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/notation.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/parse_options.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/pp.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/pp/character_data.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/pp/node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/processing_instruction.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/reader.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/relax_ng.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/sax.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/sax/document.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/sax/parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/sax/parser_context.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/sax/push_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/schema.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/syntax_error.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/text.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/xpath.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/xpath/syntax_error.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xml/xpath_context.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xslt.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/nokogiri/xslt/stylesheet.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/lib/xsd/xmlparser/nokogiri.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/archives/libxml2-2.8.0.tar.gz
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/archives/libxslt-1.1.28.tar.gz
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxml2/0011-Do-not-fetch-external-parameter-entities.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/suppressions/README.txt
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/suppressions/nokogiri_ree-1.8.7.358.supp
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/suppressions/nokogiri_ruby-1.8.7.370.supp
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/suppressions/nokogiri_ruby-1.9.2.320.supp
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/suppressions/nokogiri_ruby-1.9.3.327.supp
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/tasks/nokogiri.org.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/tasks/test.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/css/test_nthiness.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/css/test_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/css/test_tokenizer.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/css/test_xpath_visitor.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/decorators/test_slop.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/2ch.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/address_book.rlx
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/address_book.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/atom.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/bar/bar.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/bogus.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/dont_hurt_em_why.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/encoding.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/encoding.xhtml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/exslt.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/exslt.xslt
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/foo/foo.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/metacharset.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/noencoding.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/po.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/po.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/saml/saml20assertion_schema.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/saml/saml20protocol_schema.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/saml/xenc_schema.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/saml/xmldsig_schema.xsd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/shift_jis.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/shift_jis.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/shift_jis_no_charset.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/snuggles.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/staff.dtd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/staff.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/staff.xslt
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/test_document_url/bar.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/test_document_url/document.dtd
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/test_document_url/document.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/tlm.html
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/to_be_xincluded.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/valid_bar.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/files/xinclude.xml
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/helper.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/sax/test_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/sax/test_parser_context.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_builder.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_document.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_document_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_document_fragment.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_element_description.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_named_characters.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/html/test_node_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_additional_namespaces_in_builder_doc.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_aliased_default.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_in_builder_doc.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_in_cloned_doc.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_in_created_doc.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_in_parsed_doc.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/namespaces/test_namespaces_preservation.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_convert_xpath.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_css_cache.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_encoding_handler.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_memory_leak.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_nokogiri.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_reader.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_soap4r_sax.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/test_xslt_transforms.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/node/test_save_options.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/node/test_subclass.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/sax/test_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/sax/test_parser_context.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/sax/test_push_parser.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_attr.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_attribute_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_builder.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_c14n.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_cdata.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_comment.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_document.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_document_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_document_fragment.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_dtd.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_dtd_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_element_content.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_element_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_entity_decl.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_entity_reference.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_namespace.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node_attributes.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node_inheritance.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node_reparenting.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_node_set.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_parse_options.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_processing_instruction.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_reader_encoding.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_relax_ng.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_schema.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_syntax_error.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_text.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_unparented_node.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_xinclude.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xml/test_xpath.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xslt/test_custom_functions.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test/xslt/test_exception_handling.rb
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/test_all
Building native extensions.  This could take a while...
Building nokogiri using system libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
Building nokogiri using system libraries.
libxml2 version 2.6.21 or later is required!
*** 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.9.1
    --help
    --clean
    --use-system-libraries=true
    --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-xml2-dir
    --without-xml2-dir
    --with-xml2-include
    --without-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-libxml-2.0-config
    --without-libxml-2.0-config
    --with-pkg-config
    --without-pkg-config
    --with-xslt-dir
    --without-xslt-dir
    --with-xslt-include
    --without-xslt-include=${xslt-dir}/include
    --with-xslt-lib
    --without-xslt-lib=${xslt-dir}/lib
    --with-libxslt-config
    --without-libxslt-config
    --with-pkg-config
    --without-pkg-config
    --with-exslt-dir
    --without-exslt-dir
    --with-exslt-include
    --without-exslt-include=${exslt-dir}/include
    --with-exslt-lib
    --without-exslt-lib=${exslt-dir}/lib
    --with-libexslt-config
    --without-libexslt-config
    --with-pkg-config
    --without-pkg-config


Gem files will remain installed in /var/lib/gems/1.9.1/gems/nokogiri-1.6.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/gem_make.out

Platform information --

root@idx1:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
root@idx1:~# dpkg -l | grep libxml
ii  libxml2                          2.7.8.dfsg-5.1ubuntu4.6      GNOME XML library
ii  libxml2-dev                      2.7.8.dfsg-5.1ubuntu4.6      Development files for the GNOME XML library
@tarrall

This comment has been minimized.

tarrall commented May 13, 2014

This may be a workaround:

gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2 
@cameronheard

This comment has been minimized.

cameronheard commented May 13, 2014

@tarrall - this workaround worked on OSX Mavericks, pointing to the libxml2 in Xcode 5.1 (with command line tools):

gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
@flavorjones

This comment has been minimized.

Member

flavorjones commented May 14, 2014

Thanks for letting us know this isn't working for you. We're currently working on a few high-priority issues with standard builds in 1.6.2, but this is next on my list after those. Hoping to get things fixed in the next few hours.

@hyfather

This comment has been minimized.

hyfather commented May 14, 2014

Thanks @flavorjones. Haven't been able to try out @tarrall's workaround yet, but I can try it if you guys want the result on 12.04.

@flavorjones

This comment has been minimized.

Member

flavorjones commented May 14, 2014

Can you reply with the contents of your mkmf.log file? That would help isolate the issue.

@hyfather

This comment has been minimized.

hyfather commented May 14, 2014

I will but I can only do this when I can access the instance tomorrow morning PST (thanks to VPN issues).

@lukef

This comment has been minimized.

lukef commented May 14, 2014

Nokogiri is busted on 14.04 also. I've been at it for about 3 hours now and my only option is to reprovision a non-ubuntu server right now.

FWIW:

Building nokogiri using system libraries.
*** 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.

mkmf.log shows libxml errors like:

"gcc -o conftest -I/usr/local/rvm/rubies/ruby-2.1.1/include/ruby-2.1.0/x86_64-linux -I/usr/local/rvm/rubies/ruby-2.1.1/include/ruby-2.1.0/ruby/backward -I/usr/local/rvm/rubies/ruby-2.1.1/include/ruby-2.1.0 -I. -I/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0/include/libxml2 -I/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0/include -I/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26/include     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC  -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATH='"/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0"' -DNOKOGIRI_LIBXSLT_PATH='"/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26"' -I/usr/include/libxml2 -I/usr/include/libxml2 conftest.c  -L. -L/usr/local/rvm/rubies/ruby-2.1.1/lib -Wl,-R/usr/local/rvm/rubies/ruby-2.1.1/lib -L/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0/lib -Wl,-R/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0/lib -L/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26/lib -Wl,-R/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0/lib -Wl,-rpath,/usr/local/rvm/gems/ruby-2.1.1/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26/lib       -lxslt -lxml2 -lxml2 -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-2.1.1/lib -L/usr/local/rvm/rubies/ruby-2.1.1/lib -lruby -lxml2  -lxslt -lxml2 -lxml2 -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlParseDoc’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return 0; }
                                                         ^
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return 0; }

But i'll be damned if I know how to get it to work despite checking out the 100 blog/SO entries and following the instructions.

I'm using RVM.

** UPDATE ** : Moving to Ruby 2.0 (from 2.1) resolved my issue.

@flavorjones

This comment has been minimized.

Member

flavorjones commented May 20, 2014

@lukef -- Is there a specific reason you don't want to use the bundled version of libxml2/libxslt? I have no idea what version of libxml2 either you are trying to build against ... which is the whole point behind bundling libxml2 with the gem. What version of libxml2 does ubuntu 14 deliver?

@hyfather -- still waiting on your ubuntu 12 mkmf.log output. For the record, I was able to build Nokogiri against system libraries on ubuntu 12 without a problem.

@hyfather

This comment has been minimized.

hyfather commented May 20, 2014

Sorry for the delay, it fell through the cracks.

EDIT: This was run with export NOKOGIRI_USE_SYSTEM_LIBRARIES=1

root@idx4:~# gem install nokogiri -v1.6.2 
Building native extensions.  This could take a while...
Building nokogiri using system libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
Building nokogiri using system libraries.
libxml2 version 2.6.21 or later is required!
*** 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.9.1
    --help
    --clean
    --use-system-libraries=true
    --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-xml2-dir
    --without-xml2-dir
    --with-xml2-include
    --without-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-libxml-2.0-config
    --without-libxml-2.0-config
    --with-pkg-config
    --without-pkg-config
    --with-xslt-dir
    --without-xslt-dir
    --with-xslt-include
    --without-xslt-include=${xslt-dir}/include
    --with-xslt-lib
    --without-xslt-lib=${xslt-dir}/lib
    --with-libxslt-config
    --without-libxslt-config
    --with-pkg-config
    --without-pkg-config
    --with-exslt-dir
    --without-exslt-dir
    --with-exslt-include
    --without-exslt-include=${exslt-dir}/include
    --with-exslt-lib
    --without-exslt-lib=${exslt-dir}/lib
    --with-libexslt-config
    --without-libexslt-config
    --with-pkg-config
    --without-pkg-config


Gem files will remain installed in /var/lib/gems/1.9.1/gems/nokogiri-1.6.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/gem_make.out

root@idx4:~# find /var/lib/gems/1.9.1/gems/nokogiri-1.6.2 -iname mkmf.log
/var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/mkmf.log

root@idx4:~# cat /var/lib/gems/1.9.1/gems/nokogiri-1.6.2/ext/nokogiri/mkmf.log
package configuration for libxml-2.0 is not found
package configuration for libxslt is not found
package configuration for libexslt is not found
"gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I.    -fno-strict-aliasing -g -g -O2 -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib -L.  -rdynamic -Wl,-export-dynamic     -lruby-1.9.1  -lpthread -lrt -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

"gcc -E -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I.    -fno-strict-aliasing -g -g -O2 -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline  conftest.c -o conftest.i"
conftest.c:3:31: fatal error: libxml/xmlversion.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <libxml/xmlversion.h>
4: 
5: #if LIBXML_VERSION < 20621
6: #error libxml2 is too old
7: #endif
/* end */

root@idx4:~# dpkg -l | grep libxml
ii  libxml2                          2.7.8.dfsg-5.1ubuntu4.7      GNOME XML library
ii  libxml2-dev                      2.7.8.dfsg-5.1ubuntu4.7      Development files for the GNOME XML library
root@idx4:~# dpkg -l | grep libxslt
ii  libxslt1-dev                     1.1.26-8ubuntu1.3            XSLT 1.0 processing library - development kit
ii  libxslt1.1                       1.1.26-8ubuntu1.3            XSLT 1.0 processing library - runtime library
root@idx4:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
@knu

This comment has been minimized.

Member

knu commented May 21, 2014

There is already 1.6.2.1, which try.
Maybe ldd $(gem which nokogiri/nokogiri.so) could give you a hint.

gondoi added a commit to gondoi/xml that referenced this issue Jun 4, 2014

[COOK-4468] Only set ENV variable when needed
When setting the environment variable to use system libraries,
'nokogiri' will use system libraries no matter what value the varible is
set to.

Also, the latest versions of `nokogiri` fail to compile with system
libraries on ubuntu[1].

[1] sparklemotion/nokogiri#1099
@Stephenitis

This comment has been minimized.

Stephenitis commented Jun 5, 2014

I'm seeing the following at runtime

/usr/local/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)

    /usr/local/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... yes
Building libxml2-2.8.0 for nokogiri.
************************************************************************
@tigris

This comment has been minimized.

tigris commented Jun 8, 2014

FYI, same problem here, libxml = 2.7.8 on ubuntu "precise", but use system libraries results in complaints about libxml not being greater than 2.6.21 (which i am pretty sure it is).

@kenzan100

This comment has been minimized.

kenzan100 commented Jun 25, 2014

@cameronheard your workaround worked for me, too(Mavericks). thanks!

@miloskroulik

This comment has been minimized.

miloskroulik commented Jul 27, 2014

On Ubuntu 14.04 (Trusty) I had to do:

$ sudo apt-get install libxml2-dev libxslt-dev

Thanks go to https://ask.openstack.org/en/question/6064/where-can-i-get-the-missing-xmlversionh-file-when-installing-keystone/?answer=6100#post-id-6100

@cybermuffin

This comment has been minimized.

cybermuffin commented Jul 29, 2014

@cameronheard thx dude!

@kirs

This comment has been minimized.

kirs commented Jul 31, 2014

Advises above didn't help me, here is the solution for OS X 10.9:

brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
@rafaelpx

This comment has been minimized.

rafaelpx commented Aug 1, 2014

@kirs I'm also using OS X 10.9 and your solution worked for me. Thank you very much!

@mattheworiordan

This comment has been minimized.

mattheworiordan commented Aug 7, 2014

I get this same issue on Ubuntu 14.04. As we are using build packs, we cannot specify any environment variables when bundler runs unfortunately, and the server meets the libxml requirements as it is higher than what's specified.

@andreas-venturini

This comment has been minimized.

andreas-venturini commented Aug 24, 2014

on Ubuntu 14.04 try installing zlib1g-dev

@mattheworiordan

This comment has been minimized.

mattheworiordan commented Aug 25, 2014

That worked for me, thank you @andreas-venturini

@jianinz

This comment has been minimized.

jianinz commented Sep 21, 2014

On Ubuntu 14.04 (Trusty) I had to do:

$ sudo apt-get install libxml2-dev libxslt-dev
Thanks go to https://ask.openstack.org/en/question/6064/where-can-i-get-the-missing-xmlversionh-file-when-installing-keystone/?answer=6100#post-id-6100

Thanks @miloskroulik , it solves my problem!

@robert3d

This comment has been minimized.

robert3d commented Sep 29, 2014

@kirs, Thanks! Your solution just put an end to my frustrations. (OSX 10.9.5)

@AlexClineBB

This comment has been minimized.

AlexClineBB commented Nov 6, 2014

@andreas-venturini your suggestion worked for me on Ubuntu 14.04 as well. Was running into problems installing nokogiri with chef's embedded ruby.

@justfalter

This comment has been minimized.

justfalter commented Nov 24, 2014

This may be a workaround:

gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2

What worked for me:

  1. Ensuring that libxml2-dev and libxslt-dev were installed.
  2. Specifying the xml2-include path for nokogiri's build config (see @tarrall's suggestion, above).
@ain

This comment has been minimized.

ain commented Nov 27, 2014

I still had to go NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install nokogiri to get 1.6.5 installed.

@sergey-alekseev

This comment has been minimized.

sergey-alekseev commented Nov 29, 2014

@kirs your solution helps on OS X Yosemite 10.10.1. Thanks!

@flavorjones

This comment has been minimized.

Member

flavorjones commented Dec 2, 2014

Hi all,

This is a very long thread, and I'm not entirely sure the OP's issue got resolved. I'm also unsure if any of the advice here isn't properly captured in the Installation Tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html

I'm closing, but would love it if any individuals who were helped by the advice here would sanity check the installation tutorial for missing information for their platform.

-m

@flavorjones flavorjones closed this Dec 2, 2014

@Fh-jlivesay

This comment has been minimized.

Fh-jlivesay commented Mar 4, 2015

libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.

GRR.

It would be nice to include some instructions for CentOS 6.5 with EPEL.

@Fh-jlivesay

This comment has been minimized.

Fh-jlivesay commented Mar 4, 2015

Oh wow. My apologies.
The answer is to just wait for it to complete. The first message on bundle install IS NOT an error.

@flavorjones

This comment has been minimized.

Member

flavorjones commented Mar 12, 2015

Hi,

You mean like these instructions? ;)

http://www.nokogiri.org/tutorials/installing_nokogiri.html#red_hat___centos

If these steps are not working for you, I'd love to hear more so that we
can improve the docs. Or, you can send a PR to the open-source repo backing
the tutorials.
On Mar 4, 2015 6:44 AM, "Joshua Livesay" notifications@github.com wrote:

libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.

GRR.

It would be nice to include some instructions for CentOS 6.5 with EPEL.


Reply to this email directly or view it on GitHub
#1099 (comment)
.

@Fh-jlivesay

This comment has been minimized.

Fh-jlivesay commented Mar 12, 2015

@flavorjones I did see that and followed the instructions with no effect on the outcome. I spent some hours attempting to compile a compatible version of libxml2. My problem ended up being that I did not understand the message being delivered from the nokogiri gem installation.

It basically says "Hey i'm going to compile my own version of libxml2 and if you have a problem with that, run this command to use your system version" I interpreted the message as an error because the installation seemed to hang afterward. So I proceeded to the contingency of using my system libxml2 finally leading to hours of headache.

I know now this is my own fault for not fully understanding the message. Maybe further clarifying that "Hey, there is nothing broken" would help others avoid the same rabbit hole.

@flavorjones

This comment has been minimized.

Member

flavorjones commented Mar 24, 2015

Fair point. When we get to #1220 (hopefully for Nokogiri 1.7) then the scary wording will be appropriate. Thanks for following up!

@ASHFAQPATWARI

This comment has been minimized.

ASHFAQPATWARI commented Jul 27, 2015

$ sudo apt-get install libxml2-dev libxslt-dev

This worked for me.

@cesc1989

This comment has been minimized.

cesc1989 commented Aug 12, 2015

@tarrall answer did the trick:

gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2

@sparklemotion sparklemotion locked and limited conversation to collaborators Aug 12, 2015

@flavorjones

This comment has been minimized.

Member

flavorjones commented Aug 12, 2015

Hi all,

This is a very long thread, and I'm not entirely sure the OP's issue got resolved. I'm also unsure if any of the advice here isn't properly captured in the Installation Tutorial at

http://www.nokogiri.org/tutorials/installing_nokogiri.html

I'm closing, but would love it if any individuals who were helped by the advice here would sanity check the installation tutorial for missing information for their platform, and open new issues if so.

-m

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.