{"id":2490,"date":"2016-12-06T23:43:01","date_gmt":"2016-12-06T14:43:01","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=2490"},"modified":"2016-12-06T23:47:19","modified_gmt":"2016-12-06T14:47:19","slug":"bundle-install-%e3%81%8c-nokogiri-%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e4%be%9d%e5%ad%98%e3%81%a7%e5%a4%b1%e6%95%97%e3%81%97%e3%81%9f%e5%a0%b4%e5%90%88","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=2490","title":{"rendered":"bundle install \u304c nokogiri \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u3067\u5931\u6557\u3057\u305f\u5834\u5408"},"content":{"rendered":"<p>bundle install \u304c\u3001nokogiri \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u3067\u5931\u6557\u3057\u305f\u5834\u5408\u3002<\/p>\n<p>[bash]<br \/>\nInstalling nokogiri 1.6.8.1 with native extensions<br \/>\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.<\/p>\n<p>    current directory: \/Users\/xxxxx\/.rbenv\/versions\/2.3.1\/lib\/ruby\/gems\/2.3.0\/gems\/nokogiri-1.6.8.1\/ext\/nokogiri<br \/>\n\/Users\/xxxxx\/.rbenv\/versions\/2.3.1\/bin\/ruby -r .\/siteconf20161206-45292-57wgxr.rb extconf.rb<br \/>\nchecking if the C compiler accepts &#8230; yes<br \/>\nchecking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future&#8230; no<br \/>\nBuilding nokogiri using packaged libraries.<br \/>\nUsing mini_portile version 2.1.0<br \/>\nchecking for iconv.h&#8230; yes<br \/>\nchecking for gzdopen() in -lz&#8230; yes<br \/>\nchecking for iconv&#8230; yes<br \/>\n************************************************************************<br \/>\nIMPORTANT NOTICE:<\/p>\n<p>Building Nokogiri with a packaged version of libxml2-2.9.4.<\/p>\n<p>Team Nokogiri will keep on doing their best to provide security<br \/>\nupdates in a timely manner, but if this is a concern for you and want<br \/>\nto use the system library instead; abort this installation process and<br \/>\nreinstall nokogiri as follows:<\/p>\n<p>    gem install nokogiri &#8212; &#8211;use-system-libraries<br \/>\n        [&#8211;with-xml2-config=\/path\/to\/xml2-config]<br \/>\n        [&#8211;with-xslt-config=\/path\/to\/xslt-config]<\/p>\n<p>If you are using Bundler, tell it to use the option:<\/p>\n<p>    bundle config build.nokogiri &#8211;use-system-libraries<br \/>\n    bundle install<\/p>\n<p>Note, however, that nokogiri is not fully compatible with arbitrary<br \/>\nversions of libxml2 provided by OS\/package vendors.<br \/>\n************************************************************************<br \/>\n[\/bash]<\/p>\n<p>brew\u3067\u3001libxml2 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001bundle\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001libxml2 \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>[bash]<br \/>\n$ brew install libxml2<br \/>\n$ bundle config build.nokogiri &#8211;use-system-libraries &#8211;with-xml2-include=\/usr\/local\/opt\/libxml2\/include\/libxml2\/<br \/>\n$ bundle install<br \/>\n[\/bash]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bundle install \u304c\u3001nokogiri \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u4f9d\u5b58\u3067\u5931\u6557\u3057\u305f\u5834\u5408\u3002 [bash] Installing nokogiri 1.6.8.1 with native extensions Gem::Ext: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[17,25,14,4],"tags":[],"class_list":["post-2490","post","type-post","status-publish","format-standard","hentry","category-windowsmac","category-rails","category-ruby","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2490"}],"version-history":[{"count":3,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2490\/revisions"}],"predecessor-version":[{"id":2493,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2490\/revisions\/2493"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}