{"id":1695,"date":"2013-04-09T15:42:01","date_gmt":"2013-04-09T06:42:01","guid":{"rendered":"http:\/\/redwing.moo.jp\/cocoa\/?p=1695"},"modified":"2013-04-09T15:42:01","modified_gmt":"2013-04-09T06:42:01","slug":"cupertino-%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%ab%e5%a4%b1%e6%95%97%e3%81%97%e3%81%9f%e9%9a%9b%e3%81%ae%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/redwing.moo.jp\/cocoa\/archives\/1695","title":{"rendered":"cupertino \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p>\uff08nokogiri \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5\uff09<\/p>\n<p><a title=\"https:\/\/github.com\/mattt\/cupertino\" href=\"https:\/\/github.com\/mattt\/cupertino\" target=\"_blank\">https:\/\/github.com\/mattt\/cupertino<\/a><br \/>\ncupertino \u3092\u5229\u7528\u3059\u308b\u3068\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089 apple \u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30bb\u30f3\u30bf\u30fc\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u65e9\u901f\u3001cupertino \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u305f\u304c\u5931\u6557\u3057\u305f\u306e\u3067\u3001\u5bfe\u51e6\u3057\u305f\u969b\u306e\u30e1\u30e2\u3002<\/p>\n<p><strong>1. (\u554f\u984c) cupertino \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557<\/strong><\/p>\n<pre>$ sudo gem install cupertino\r\n\r\n\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u3066\u5931\u6557\u3057\u3066\u3044\u305f\u3002\r\n---------------------------------------------\r\n$ sudo gem install cupertino\r\n\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing cupertino:\r\nERROR: Failed to build gem native extension.\r\n\r\n\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/bin\/ruby extconf.rb\r\nchecking for libxml\/parser.h... yes\r\nchecking for libxslt\/xslt.h... yes\r\nchecking for libexslt\/exslt.h... yes\r\nchecking for iconv_open() in iconv.h... no\r\nchecking for iconv_open() in -liconv... no\r\nchecking for iconv_open() in -liconv... no\r\nchecking for libiconv_open() in iconv.h... no\r\nchecking for libiconv_open() in -liconv... no\r\nchecking for libiconv_open() in -liconv... no\r\n-----\r\nlibiconv is missing.  please visit http:\/\/nokogiri.org\/tutorials\/installing_nokogiri.html for help with installing dependencies.\r\n-----\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of\r\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\r\ndetails.  You may need configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--without-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}\/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}\/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/bin\/ruby\r\n\t--with-zlib-dir\r\n\t--without-zlib-dir\r\n\t--with-zlib-include\r\n\t--without-zlib-include=${zlib-dir}\/include\r\n\t--with-zlib-lib\r\n\t--without-zlib-lib=${zlib-dir}\/lib\r\n\t--with-iconv-dir\r\n\t--without-iconv-dir\r\n\t--with-iconv-include\r\n\t--without-iconv-include=${iconv-dir}\/include\r\n\t--with-iconv-lib\r\n\t--without-iconv-lib=${iconv-dir}\/lib\r\n\t--with-xml2-dir\r\n\t--without-xml2-dir\r\n\t--with-xml2-include\r\n\t--without-xml2-include=${xml2-dir}\/include\r\n\t--with-xml2-lib\r\n\t--without-xml2-lib=${xml2-dir}\/lib\r\n\t--with-xslt-dir\r\n\t--without-xslt-dir\r\n\t--with-xslt-include\r\n\t--without-xslt-include=${xslt-dir}\/include\r\n\t--with-xslt-lib\r\n\t--without-xslt-lib=${xslt-dir}\/lib\r\n\t--with-libxslt-config\r\n\t--without-libxslt-config\r\n\t--with-pkg-config\r\n\t--without-pkg-config\r\n\t--with-libxml-2.0-config\r\n\t--without-libxml-2.0-config\r\n\t--with-libiconv-config\r\n\t--without-libiconv-config\r\n\t--with-iconvlib\r\n\t--without-iconvlib\r\n\t--with-iconvlib\r\n\t--without-iconvlib\r\n\t--with-iconvlib\r\n\t--without-iconvlib\r\n\t--with-iconvlib\r\n\t--without-iconvlib\r\n\r\nGem files will remain installed in \/Library\/Ruby\/Gems\/1.8\/gems\/nokogiri-1.5.9 for inspection.\r\nResults logged to \/Library\/Ruby\/Gems\/1.8\/gems\/nokogiri-1.5.9\/ext\/nokogiri\/gem_make.out\r\n<\/pre>\n<p><strong>2. (\u5bfe\u51e6\u65b9\u6cd5)<\/strong><\/p>\n<ol>\n<li>cupertino \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e URL \u3067\u5bfe\u51e6\u65b9\u6cd5\u3092\u8abf\u3079\u305f\u3068\u3053\u308d\u3001nokogiri \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001libxml2, libxslt \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3068\u306e\u3053\u3068\u3002<br \/>\n\u3053\u308c\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304b\u3089\u3001\u518d\u5ea6\u3001cupertino \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u305f\u304c\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u305f\u306e\u3067\u3001<br \/>\n\u305d\u306e\u4ed6\u306e\u65b9\u6cd5\u3092\u63a2\u3057\u305f\u3002<\/li>\n<p>\t<a title=\"http:\/\/nokogiri.org\/tutorials\/installing_nokogiri.html\" href=\"http:\/\/nokogiri.org\/tutorials\/installing_nokogiri.html\" target=\"_blank\">http:\/\/nokogiri.org\/tutorials\/installing_nokogiri.html<\/a><\/p>\n<pre>$ sudo port install libxml2 libxslt\r\n$ sudo gem install nokogiri<\/pre>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u3001cupertino \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u6210\u529f\u3057\u305f\u3002\n<pre>$ sudo gem install nokogiri -- \\\r\n\t--with-xslt-dir=\/usr\/local\/Cellar\/libxslt\/1.1.26 \\\r\n\t--with-xml2-include=\/usr\/local\/Cellar\/libxml2\/2.7.7\/include\/libxml2 \\\r\n\t--with-xml2-lib=\/usr\/local\/Cellar\/libxml2\/2.7.7\/lib \\\r\n\t--with-iconv-dir=\/usr<\/pre>\n<\/li>\n<\/ol>\n<a href=\"https:\/\/twitter.com\/redwing1300?ref_src=twsrc%5Etfw\" class=\"twitter-follow-button\" data-size=\"large\" data-show-count=\"false\">Follow @redwing1300<\/a><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><div id=\"redwi-558804444\" class=\"redwi- redwi-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9652476346722993\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-9652476346722993\" \ndata-ad-slot=\"\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\uff08nokogiri \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5\uff09 https:\/\/github.com\/mattt\/cupertino cupertino \u3092\u5229\u7528\u3059\u308b\u3068\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089 apple \u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30bb\u30f3\u30bf\u30fc\u3078\u30a2 &hellip; <a href=\"https:\/\/redwing.moo.jp\/cocoa\/archives\/1695\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,6,4],"tags":[70,71],"class_list":["post-1695","post","type-post","status-publish","format-standard","hentry","category-ios","category-unix_osx","category-xcode4","tag-cupertino","tag-nokogiri"],"_links":{"self":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":34,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1695\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}