{"id":7344,"date":"2014-06-07T02:29:40","date_gmt":"2014-06-07T02:29:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/troubles-with-nokogiri-gem-on-mountain-lion-using-bundler-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:29:40","modified_gmt":"2014-06-07T02:29:40","slug":"troubles-with-nokogiri-gem-on-mountain-lion-using-bundler-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/troubles-with-nokogiri-gem-on-mountain-lion-using-bundler-collection-of-common-programming-errors\/","title":{"rendered":"troubles with nokogiri gem on mountain lion using bundler-Collection of common programming errors"},"content":{"rendered":"<p>This works on the latest Xcode CLT, mountain lion and mavericks, and nokogiri 1.6.1<\/p>\n<p>exactly nokogiri&#8217;s patches as brew formulas libxslt and libxml2<\/p>\n<pre><code>curl -L https:\/\/gist.githubusercontent.com\/steakknife\/8969368\/raw\/install_nokogiri_brew_osx.sh | bash\n<\/code><\/pre>\n<p>if you dont trust https pipe to shell, here&#8217;s the script raw url. [gist url]<\/p>\n<p>Way faster and gives a known good, keg-only copy of libiconv and nokogiri&#8217;s libxml2 and libxslt. System libxml2 isn&#8217;t touched.<\/p>\n<p>This takes a couple minutes and eats up 100 MiB+ when installed.<\/p>\n<pre><code>gem install nokogiri\n<\/code><\/pre>\n<p>Either way, libxml2 needs to become more stable or it&#8217;s a de-facto fork and more work for everyone.<\/p>\n<p>Don&#8217;t bother link-ing libxml2 or libxslt, sudo anything, or make install libiconv either, these are unnecessary and fragile.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This works on the latest Xcode CLT, mountain lion and mavericks, and nokogiri 1.6.1 exactly nokogiri&#8217;s patches as brew formulas libxslt and libxml2 curl -L https:\/\/gist.githubusercontent.com\/steakknife\/8969368\/raw\/install_nokogiri_brew_osx.sh | bash if you dont trust https pipe to shell, here&#8217;s the script raw url. [gist url] Way faster and gives a known good, keg-only copy of libiconv and [&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-7344","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7344","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=7344"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7344\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}