{"id":7318,"date":"2014-06-07T02:24:49","date_gmt":"2014-06-07T02:24:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/os-x-mavericks-cannot-install-libxml-ruby-gem-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:24:49","modified_gmt":"2014-06-07T02:24:49","slug":"os-x-mavericks-cannot-install-libxml-ruby-gem-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/os-x-mavericks-cannot-install-libxml-ruby-gem-collection-of-common-programming-errors\/","title":{"rendered":"OS X Mavericks, Cannot install libxml-ruby gem?-Collection of common programming errors"},"content":{"rendered":"<p>On a clean install of Mac OS 10.9, jumping from 10.7.5, I seem incapable of installing the libxml-ruby gem. I use Homebrew and RVM to manage my environment, and I&#8217;ve installed the following things:<\/p>\n<pre><code>brew list\n\napple-gcc42 gcc46       libmpc08    mpfr2       postgresql\nautoconf    gmp4        libtool     mysql55     ppl011\nautomake    libgpg-error    libxml2     openssl     readline\ncloog-ppl015    libiconv    libxslt     ossp-uuid   wget\ncmake       libksba     libyaml     pkg-config\n<\/code><\/pre>\n<p>Entering <code>brew doctor<\/code> returns:<\/p>\n<pre><code>Your system is ready to brew.\n<\/code><\/pre>\n<p>Running <code>bundle install<\/code> yields the following, where I&#8217;ve removed the links. I can&#8217;t post more than two without 10 reputation apparently:<\/p>\n<pre><code>Fetching source index from . . .\nFetching source index from . . .\nFetching source index from . . .\nResolving dependencies..............................................................................................\nUsing rake (10.0.4) \nUsing Platform (0.4.0) \nUsing open4 (1.3.0) \nUsing POpen4 (0.1.4) \n<\/code><\/pre>\n<p>etc., eventually reaching:<\/p>\n<pre><code>Using nokogiri (1.5.9) \n<\/code><\/pre>\n<p>etc.<\/p>\n<pre><code>Installing libxml-ruby (2.3.3) \nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\n\/Users\/iandonovan\/.rvm\/rubies\/ruby-1.9.3-p392\/bin\/ruby extconf.rb --with-opt-include=\/usr\/local\/Cellar\/libxml2\/2.9.1\/include\/\nextconf.rb:17: Use RbConfig instead of obsolete and deprecated Config.\nchecking for socket() in -lsocket... no\nchecking for gethostbyname() in -lnsl... no\nchecking for atan() in -lm... no\nchecking for atan() in -lm... yes\nchecking for inflate() in -lz... yes\nchecking for iconv_open() in -liconv... yes\nchecking for xmlParseDoc() in -lxml2... yes\nchecking for libxml\/xmlversion.h... yes\ncreating extconf.h\ncreating Makefile\nmake\ncompiling libxml.c\ncompiling ruby_xml.c\nruby_xml.c: In function 'rxml_default_tree_indent_string_set':\nruby_xml.c:612:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]\ncompiling ruby_xml_attr.c\ncompiling ruby_xml_attr_decl.c\nruby_xml_attr_decl.c: In function 'rxml_attr_decl_name_get':\nruby_xml_attr_decl.c:57:5: warning: pointer targets in passing argument 2 of 'rxml_new_cstr' differ in signedness [-Wpointer-sign]\nruby_xml_encoding.h:11:7: note: expected 'const char *' but argument is of type 'const xmlChar *'\ncompiling ruby_xml_attributes.c\ncompiling ruby_xml_cbg.c\ncompiling ruby_xml_document.c\nruby_xml_document.c: In function 'rxml_document_canonicalize':\nruby_xml_document.c:232:10: warning: unused variable 'list_in' [-Wunused-variable]\nruby_xml_document.c:334:3: warning: passing argument 4 of 'xmlC14NDocDumpMemory' from incompatible pointer type [enabled by default]\n\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/MacOSX.platform\/Developer\/SDKs\/MacOSX10.9.sdk\/usr\/include\/libxml2\/libxml\/c14n.h:76:3: note: expected 'xmlChar **' but argument is of type 'xmlChar * (*)[256]'\nruby_xml_document.c:199:7: warning: variable 'length' set but not used [-Wunused-but-set-variable]\nruby_xml_document.c: In function 'rxml_document_root_set':\nruby_xml_document.c:757:14: warning: variable 'xroot' set but not used [-Wunused-but-set-variable]\nruby_xml_document.c: In function 'rxml_document_save':\nruby_xml_document.c:805:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]\ncompiling ruby_xml_dtd.c\ncompiling ruby_xml_encoding.c\ncompiling ruby_xml_error.c\ncompiling ruby_xml_html_parser.c\ncompiling ruby_xml_html_parser_context.c\nruby_xml_html_parser_context.c: In function 'rxml_html_parser_context_options_set':\nruby_xml_html_parser_context.c:307:7: warning: variable 'result' set but not used [-Wunused-but-set-variable]\ncompiling ruby_xml_html_parser_options.c\ncompiling ruby_xml_input_cbg.c\ncompiling ruby_xml_io.c\ncompiling ruby_xml_namespace.c\ncompiling ruby_xml_namespaces.c\ncompiling ruby_xml_node.c\nruby_xml_node.c: In function 'rxml_node_to_s':\nruby_xml_node.c:622:54: error: dereferencing pointer to incomplete type\nruby_xml_node.c:624:56: error: dereferencing pointer to incomplete type\nmake: *** [ruby_xml_node.o] Error 1\nGem files will remain installed in \/Users\/iandonovan\/.rvm\/gems\/ruby-1.9.3-p392@standard-set\/gems\/libxml-ruby-2.3.3 for inspection.\nResults logged to \/Users\/iandonovan\/.rvm\/gems\/ruby-1.9.3-p392@standard-set\/gems\/libxml-ruby-2.3.3\/ext\/libxml\/gem_make.out\nAn error occurred while installing libxml-ruby (2.3.3), and Bundler cannot continue\nMake sure that `gem install libxml-ruby -v '2.3.3'` succeeds before bundling.\n<\/code><\/pre>\n<p>Running that standalone gem install, <code>gem install libxml-ruby -v '2.3.3'<\/code>, returns the same error message.<\/p>\n<p>XCode 5.0.1 is installed, alongside the developer tools. I could not install the dev tools through <code>xcode-select --install<\/code> because of &#8220;A network problem&#8221; (according to the dialog box) and instead downloaded the Mavericks package from developer.apple.com.<\/p>\n<p>Has anyone else dealt with this? Nokogiri appears to be installing just fine (1.5.9 gets bundled), but libxml-ruby can&#8217;t finish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a clean install of Mac OS 10.9, jumping from 10.7.5, I seem incapable of installing the libxml-ruby gem. I use Homebrew and RVM to manage my environment, and I&#8217;ve installed the following things: brew list apple-gcc42 gcc46 libmpc08 mpfr2 postgresql autoconf gmp4 libtool mysql55 ppl011 automake libgpg-error libxml2 openssl readline cloog-ppl015 libiconv libxslt ossp-uuid [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7318","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7318"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7318\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}