Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

rbx gem install nokogiri hangs #2958

Closed
undying opened this Issue · 12 comments

4 participants

@undying

when I`m trying to install nokogiri gem, installation process hangs with such strace:

mprotect(0x7f9137400000, 6291456, PROT_READ|PROT_WRITE) = 0
mprotect(0x7f9137a00000, 6291456, PROT_READ|PROT_WRITE) = 0
mprotect(0x7f9137a00000, 6291456, PROT_NONE) = 0
mprotect(0x7f9137400000, 6291456, PROT_READ|PROT_WRITE) = 0
futex(0x2ed8eec, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2ed8ee8, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
futex(0x2e7c304, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x2e7c2d0, 426) = 1
futex(0x2e7c2d0, FUTEX_WAKE_PRIVATE, 1) = 1

but when I`m using --no-doc key

 rbx gem install nokogiri --no-doc 

installation ends successfully

rubinius 2.2.5.n55 (2.1.0 5cffe7b 2014-02-24 JI) [x86_64-linux-gnu]

Linux kron 3.13.2-gentoo #1 SMP Fri Feb 14 15:14:06 MSK 2014 x86_64 Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz GenuineIntel GNU/Linux

@YorickPeterse

Can you run gem install nokogiri --verbose and paste the output?

@undying

Of course, here it is:

kron@kron ~ % gem install nokogiri --verbose                                                                                                                                            0:51:22
HEAD https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
HEAD https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
GET https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem nokogiri-1.6.1
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/.autotest
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/.gemtest
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/.travis.yml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/CHANGELOG.ja.rdoc
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/CHANGELOG.rdoc
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/C_CODING_STYLE.rdoc
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/Gemfile
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/Manifest.txt
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/README.ja.rdoc
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/README.rdoc
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ROADMAP.md
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/Rakefile
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/STANDARD_RESPONSES.md
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/Y_U_NO_GEMSPEC.md
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/bin/nokogiri
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/build_all
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/dependencies.yml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/depend
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/extconf.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_document.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_document.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_element_description.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_element_description.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_entity_lookup.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_entity_lookup.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_sax_parser_context.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_sax_parser_context.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_sax_push_parser.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/html_sax_push_parser.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/nokogiri.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/nokogiri.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_attr.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_attr.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_attribute_decl.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_attribute_decl.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_cdata.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_cdata.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_comment.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_comment.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_document.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_document.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_document_fragment.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_document_fragment.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_dtd.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_dtd.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_element_content.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_element_content.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_element_decl.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_element_decl.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_encoding_handler.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_encoding_handler.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_entity_decl.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_entity_decl.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_entity_reference.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_entity_reference.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_io.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_io.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_libxml2_hacks.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_libxml2_hacks.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_namespace.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_namespace.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_node.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_node.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_node_set.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_node_set.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_processing_instruction.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_processing_instruction.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_reader.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_reader.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_relax_ng.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_relax_ng.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_parser.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_parser.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_parser_context.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_parser_context.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_push_parser.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_sax_push_parser.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_schema.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_schema.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_syntax_error.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_syntax_error.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_text.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_text.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_xpath_context.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xml_xpath_context.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xslt_stylesheet.c
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ext/nokogiri/xslt_stylesheet.h
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/parser.y
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/parser_extras.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/syntax_error.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/tokenizer.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/tokenizer.rex
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/css/xpath_visitor.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/decorators/slop.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/builder.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/document.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/document_fragment.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/element_description.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/element_description_defaults.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/entity_lookup.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/sax/parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/sax/parser_context.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/html/sax/push_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/syntax_error.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/version.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/attr.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/attribute_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/builder.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/cdata.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/character_data.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/document.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/document_fragment.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/dtd.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/element_content.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/element_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/entity_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/namespace.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/node/save_options.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/node_set.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/notation.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/parse_options.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/pp.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/pp/character_data.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/pp/node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/processing_instruction.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/reader.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/relax_ng.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/document.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/parser_context.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/push_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/schema.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/syntax_error.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/text.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/xpath.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/xpath/syntax_error.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xml/xpath_context.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xslt.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/nokogiri/xslt/stylesheet.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/lib/xsd/xmlparser/nokogiri.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/tasks/cross_compile.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/tasks/nokogiri.org.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/tasks/test.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/css/test_nthiness.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/css/test_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/css/test_tokenizer.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/css/test_xpath_visitor.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/decorators/test_slop.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/2ch.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/address_book.rlx
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/address_book.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/bar/bar.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/bogus.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/dont_hurt_em_why.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/encoding.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/encoding.xhtml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/exslt.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/exslt.xslt
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/foo/foo.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/metacharset.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/noencoding.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/po.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/po.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/saml/saml20assertion_schema.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/saml/saml20protocol_schema.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/saml/xenc_schema.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/saml/xmldsig_schema.xsd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/shift_jis.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/shift_jis.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/snuggles.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/staff.dtd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/staff.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/staff.xslt
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/test_document_url/bar.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/test_document_url/document.dtd
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/test_document_url/document.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/tlm.html
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/to_be_xincluded.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/valid_bar.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/files/xinclude.xml
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/helper.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/sax/test_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/sax/test_parser_context.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_builder.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_document.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_document_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_document_fragment.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_element_description.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_named_characters.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/html/test_node_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/namespaces/test_additional_namespaces_in_builder_doc.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/namespaces/test_namespaces_in_builder_doc.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/namespaces/test_namespaces_in_created_doc.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/namespaces/test_namespaces_in_parsed_doc.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_convert_xpath.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_css_cache.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_encoding_handler.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_memory_leak.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_nokogiri.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_reader.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_soap4r_sax.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/test_xslt_transforms.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/node/test_save_options.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/node/test_subclass.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/sax/test_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/sax/test_parser_context.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/sax/test_push_parser.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_attr.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_attribute_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_builder.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_c14n.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_cdata.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_comment.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_document.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_document_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_document_fragment.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_dtd.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_dtd_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_element_content.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_element_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_entity_decl.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_entity_reference.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_namespace.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node_attributes.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node_inheritance.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node_reparenting.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_node_set.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_parse_options.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_processing_instruction.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_reader_encoding.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_relax_ng.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_schema.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_syntax_error.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_text.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_unparented_node.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_xinclude.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xml/test_xpath.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xslt/test_custom_functions.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test/xslt/test_exception_handling.rb
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/test_all
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ports/archives/libxml2-2.8.0.tar.gz
/home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ports/archives/libxslt-1.1.26.tar.gz
Building native extensions.  This could take a while...
/usr/bin/ruby21 extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-pc-linux-gnu/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating libxml2 2.8.0 (from /home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ports/x86_64-pc-linux-gnu/libxml2/2.8.0)...
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-pc-linux-gnu/ports/libxslt/1.1.26... OK
Running 'configure' for libxslt 1.1.26... OK
Running 'compile' for libxslt 1.1.26... OK
Running 'install' for libxslt 1.1.26... OK
Activating libxslt 1.1.26 (from /home/kron/.gem/ruby/2.1.0/gems/nokogiri-1.6.1/ports/x86_64-pc-linux-gnu/libxslt/1.1.26)...
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile
make "DESTDIR="
compiling xml_document.c
xml_document.c: В функции «set_encoding»:
xml_document.c:159:12: предупреждение: cast discards «__attribute__((const))» qualifier from pointer target type [-Wcast-qual]
xml_document.c: В функции «canonicalize»:
xml_document.c:505:15: предупреждение: cast discards «__attribute__((const))» qualifier from pointer target type [-Wcast-qual]
compiling html_sax_push_parser.c
compiling xml_sax_push_parser.c
compiling xml_processing_instruction.c
compiling xml_encoding_handler.c
compiling xslt_stylesheet.c
compiling xml_node_set.c
xml_node_set.c: В функции «dealloc_namespace»:
xml_node_set.c:9:13: предупреждение: cast discards «__attribute__((const))» qualifier from pointer target type [-Wcast-qual]
xml_node_set.c:11:13: предупреждение: cast discards «__attribute__((const))» qualifier from pointer target type [-Wcast-qual]
compiling xml_element_content.c
compiling html_element_description.c
html_element_description.c: В функции «get_description»:
html_element_description.c:252:10: предупреждение: cast discards «__attribute__((const))» qualifier from pointer target type [-Wcast-qual]
compiling xml_attr.c
compiling html_sax_parser_context.c
compiling nokogiri.c
compiling xml_syntax_error.c
compiling xml_entity_decl.c
compiling html_entity_lookup.c
compiling xml_entity_reference.c
compiling xml_element_decl.c
compiling xml_namespace.c
compiling xml_sax_parser_context.c
compiling xml_io.c
compiling xml_document_fragment.c
compiling xml_libxml2_hacks.c
compiling xml_cdata.c
compiling xml_xpath_context.c
compiling xml_relax_ng.c
compiling xml_text.c
compiling xml_schema.c
compiling xml_dtd.c
compiling xml_sax_parser.c
compiling xml_reader.c
compiling xml_attribute_decl.c
compiling html_document.c
compiling xml_comment.c
compiling xml_node.c
linking shared-object nokogiri/nokogiri.so
make "DESTDIR=" install
/usr/bin/install -c -m 0755 nokogiri.so ./.gem.20140304-10900-1wm4oi/nokogiri
installing default nokogiri libraries

/home/kron/.gem/ruby/2.1.0/bin/nokogiri
Successfully installed nokogiri-1.6.1
/usr/lib64/ruby/gems/2.1.0/gems/rdoc-4.0.1/lib/rdoc/markdown.rb:15931: warning: encountered \r in middle of line, treated as a mere space
Parsing documentation for nokogiri-1.6.1
Parsing sources...
100% [105/105]  lib/xsd/xmlparser/nokogiri.rb
Done installing documentation for nokogiri after 6 seconds
1 gem installed

Sorry for delay

@YorickPeterse

Hm, looking at that output it seems to've installed correctly. Does the problem occur consistently, or only once in a while?

@undying

Sorry. I posted the ruby gem install. Here is the rbx analog, it shows when the process is hangs:
(it`s long enough so I paste it to pastebin)
http://pastebin.com/GVQ253uk

@YorickPeterse

Is there a specific reason for setting LANG=C? I'm not sure if this would work if the source code were to require a different encoding. Try running it without that option or otherwise try to set it to en_US.UTF-8.

@undying

I've set it because of my default russian locale. All warnings that appears in build time will become on russian language, that`s why I've set it to "C".
I gave a try for en_US.UTF-8 and the result is the same.

@chaitanyav

@undying , @YorickPeterse I tried reproducing your issue on Mac OSX with rubinius 2.2.5. The gem got successfully installed with --no-rdoc --no-ri option. But without these flags its taking a long time parsing the documentation.
(NOTE: you can add the following to your ~/.gemrc so that you can avoid installation the rdocs for gems)

 ~ » cat .gemrc                           
gem: --no-ri --no-rdoc

libxml2 installation

~ » brew install libxml2                  nagachaitanyavellanki@nagachaanyasmbp
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libxml2-2.9
######################################################################## 100.0%
==> Pouring libxml2-2.9.1.mavericks.bottle.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

LDFLAGS:  -L/usr/local/opt/libxml2/lib
CPPFLAGS: -I/usr/local/opt/libxml2/include


If you need Python to find the installed site-packages:
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/opt/libxml2/lib/python2.7/site-packages' >> ~/Library/Python/2.7/lib/python/site-   packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/libxml2/2.9.1: 278 files, 11M

without flags

~ » gem install nokogiri                
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.1
Parsing documentation for nokogiri-1.6.1
unable to convert "\xE4" to UTF-8 in conversion from ASCII-8BIT to UTF-8 for   ext/nokogiri/tmp/x86_64-apple-darwin13.1.0/ports/libxml2/2.8.0/libxml2-2.8.0/doc/examples/testWriter.c,   skipping
unable to convert "\xF8" to UTF-8 in conversion from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/x86_64-apple-darwin13.1.0/ports/libxml2/2.8.0/libxml2-2.8.0/entities.c, skipping
^CERROR:  Interrupted

with flags --no-rdoc --no-ri

~ » gem install nokogiri --no-rdoc --no-ri
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.1
1 gem installed

Platform details

~ » ruby -v                               
rubinius 2.2.5 (2.1.0 e543ba32 2014-02-08 JI) [x86_64-darwin13.0.2]
@YorickPeterse

Does this problem still occur on Rubinius 2.5.2?

@shanetmoore

Seems to work on 2.5.2.

➜  ~  gem install nokogiri --no-rdoc --no-ri
Building native extensions.  This could take a while...
gem install nokogiriSuccessfully installed nokogiri-1.6.6.2
1 gem installed
➜  ~  gem install nokogiri
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.6.2
Parsing documentation for nokogiri-1.6.6.2
Done installing documentation for nokogiri after 2 seconds
1 gem installed
➜  ~  ruby -v
rubinius 2.5.2 (2.1.0 7a5b05b1 2015-01-30 3.4 JI) [x86_64-linux-gnu]
@YorickPeterse

@shanetmoore Thanks for looking into this!

@chaitanyav @undying: could you confirm if this is indeed working for you using 2.5.2/2.5.3?

@chaitanyav

@YorickPeterse

It works

~/Downloads/rubinius-2.5.3/rubinius/bin  ᐅ ./gem install nokogiri
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.6.6.2
2 gems installed


~/Downloads/rubinius-2.5.3/rubinius/bin  ᐅ ./ruby -v
rubinius 2.5.3 (2.1.0 2482b093 2015-04-29 3.5.1 JI) [x86_64-darwin14.3.0]
@YorickPeterse

Sweet, thanks. In that case I'll close this issue, feel free to re-open if the issue re-occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.