{"id":1952,"date":"2013-08-28T14:31:51","date_gmt":"2013-08-28T05:31:51","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=1952"},"modified":"2013-08-28T14:33:10","modified_gmt":"2013-08-28T05:33:10","slug":"gem-install-mysql2-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=1952","title":{"rendered":"gem install mysql2 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306e\u305f\u3073\u306b\u3001\u4f55\u5ea6\u3082\u30cf\u30de\u308b\u3002<br \/>\n\u4eca\u56de\u306f\u3001WindowsXP + ruby2.0 + mysql5.5<\/p>\n<p>\u304a\u306a\u3058\u307f\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u3002<br \/>\n[bash]<br \/>\nchecking for main() in -llibmysql&#8230; no<br \/>\n*** extconf.rb failed ***<br \/>\nCould not create Makefile due to some reason, probably lack of necessary<br \/>\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may<br \/>\nneed configuration options.<\/p>\n<p>Provided configuration options:<br \/>\n        &#8211;with-opt-dir<br \/>\n        &#8211;without-opt-dir<br \/>\n        &#8211;with-opt-include<br \/>\n        &#8211;without-opt-include=${opt-dir}\/include<br \/>\n        &#8211;with-opt-lib<br \/>\n        &#8211;without-opt-lib=${opt-dir}\/lib<br \/>\n        &#8211;with-make-prog<br \/>\n        &#8211;without-make-prog<br \/>\n        &#8211;srcdir=.<br \/>\n        &#8211;curdir<br \/>\n        &#8211;ruby=C:\/usr\/local\/ruby200\/bin\/ruby<br \/>\n        &#8211;with-mysql-dir<br \/>\n        &#8211;without-mysql-dir<br \/>\n        &#8211;with-mysql-include=${mysql-dir}\/include<br \/>\n        &#8211;with-mysql-lib=${mysql-dir}\/<br \/>\n        &#8211;with-mysql-dir<br \/>\n        &#8211;without-mysql-dir<br \/>\n        &#8211;with-mysql-include=${mysql-dir}\/include<br \/>\n        &#8211;with-mysql-lib=${mysql-dir}\/lib<br \/>\n        &#8211;with-libmysqllib<br \/>\n        &#8211;without-libmysqllib<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\nC:\\&gt;gem install mysql2 &#8212; &#8216;&#8211;with-mysql-include=&quot;C:\\Program Files\\MySQL\\MySQL Server 5.5\\include&quot; &#8211;with-mysql-lib=&quot;C:\\Program Files\\MySQL\\MySQL Server 5.5\\lib&quot;&#8217;<br \/>\nTemporarily enhancing PATH to include DevKit&#8230;<br \/>\nBuilding native extensions with: &#8216;&#8211;with-mysql-include=&quot;C:\\Program Files\\MySQL\\MySQL Server 5.5\\incl<br \/>\nude&quot; &#8211;with-mysql-lib=&quot;C:\\Program Files\\MySQL\\MySQL Server 5.5\\lib&quot;&#8217;<br \/>\nThis could take a while&#8230;<br \/>\nSuccessfully installed mysql2-0.3.13<br \/>\nParsing documentation for mysql2-0.3.13<br \/>\nunable to convert &quot;\\x90&quot; from ASCII-8BIT to UTF-8 for lib\/mysql2\/mysql2.so, skipping<br \/>\nInstalling ri documentation for mysql2-0.3.13<br \/>\n1 gem installed<br \/>\n[\/bash]<\/p>\n<p>\u6bce\u56de\u3001gem install \u306e\u5f15\u6570\u306e\u6e21\u3057\u65b9\u304c\u826f\u304f\u306a\u3044\u3002\u30b7\u30f3\u30b0\u30eb\u30af\u30a6\u30a9\u30fc\u30c8\u3067\u56f2\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306e\u305f\u3073\u306b\u3001\u4f55\u5ea6\u3082\u30cf\u30de\u308b\u3002 \u4eca\u56de\u306f\u3001WindowsXP + ruby2.0 + mysql5.5 \u304a\u306a\u3058\u307f\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u3002 [bash] checking for main() in -llibmysql&#038;# [&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":[11,25,14,4],"tags":[],"class_list":["post-1952","post","type-post","status-publish","format-standard","hentry","category-mysql","category-rails","category-ruby","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1952","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=1952"}],"version-history":[{"count":2,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1952\/revisions"}],"predecessor-version":[{"id":1954,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/1952\/revisions\/1954"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}